mirror of
https://github.com/git/git.git
synced 2026-03-14 02:43:25 +01:00
Clean up some dummy compatibility implementations.
In particular, sync() was never declared and caused a warning.
This commit is contained in:
@@ -315,10 +315,6 @@ char *mingw_getcwd(char *pointer, int len)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void sync(void)
|
||||
{
|
||||
}
|
||||
|
||||
void openlog(const char *ident, int option, int facility)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -505,9 +505,9 @@ int mingw_socket(int domain, int type, int protocol);
|
||||
int mingw_rename(const char*, const char*);
|
||||
#define rename mingw_rename
|
||||
|
||||
#define setlinebuf(x)
|
||||
#define fsync(x) 0
|
||||
#define getppid() 1
|
||||
static inline int fsync(int fd) { return 0; }
|
||||
static inline int getppid(void) { return 1; }
|
||||
static inline void sync(void) {}
|
||||
|
||||
extern void quote_argv(const char **dst, const char **src);
|
||||
extern const char *parse_interpreter(const char *cmd);
|
||||
|
||||
Reference in New Issue
Block a user