mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 22:25:04 +00:00
posix: Fix undeclared prototype
This commit is contained in:
parent
6f1d23b29f
commit
2fcf9c8273
16
src/posix.h
16
src/posix.h
@ -8,12 +8,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef GIT_WIN32
|
||||
# include "win32/posix.h"
|
||||
#else
|
||||
# include "unix/posix.h"
|
||||
#endif
|
||||
|
||||
#define S_IFGITLINK 0160000
|
||||
#define S_ISGITLINK(m) (((m) & S_IFMT) == S_IFGITLINK)
|
||||
|
||||
@ -23,7 +17,6 @@
|
||||
|
||||
typedef int git_file;
|
||||
|
||||
|
||||
/**
|
||||
* Standard POSIX Methods
|
||||
*
|
||||
@ -51,4 +44,13 @@ extern int p_getcwd(char *buffer_out, size_t size);
|
||||
#define p_chmod(p,m) chmod(p, m)
|
||||
#define p_close(fd) close(fd)
|
||||
|
||||
/**
|
||||
* Platform-dependent methods
|
||||
*/
|
||||
#ifdef GIT_WIN32
|
||||
# include "win32/posix.h"
|
||||
#else
|
||||
# include "unix/posix.h"
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -232,6 +232,8 @@ int p_snprintf(char *buffer, size_t count, const char *format, ...)
|
||||
return r;
|
||||
}
|
||||
|
||||
extern int p_creat(const char *path, int mode);
|
||||
|
||||
int p_mkstemp(char *tmp_path)
|
||||
{
|
||||
int r;
|
||||
|
Loading…
Reference in New Issue
Block a user