X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=compat%2Fmingw.h;h=3b2477be5f658be665f19a12b48cc47fa07d1c6b;hb=a53deac89eb6c65cd953c730f33b86ac3f72d647;hp=0e3e74304138ab2f279c74599ee934ade72ae37d;hpb=4dd4a09eac9ecb27f051ad0f3447c205c5b50c8b;p=git.git diff --git a/compat/mingw.h b/compat/mingw.h index 0e3e74304..3b2477be5 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -80,7 +80,7 @@ static inline int fork(void) static inline unsigned int alarm(unsigned int seconds) { return 0; } static inline int fsync(int fd) -{ return 0; } +{ return _commit(fd); } static inline int getppid(void) { return 1; } static inline void sync(void) @@ -89,7 +89,7 @@ static inline int getuid() { return 1; } static inline struct passwd *getpwnam(const char *name) { return NULL; } -static inline int fcntl(int fd, int cmd, long arg) +static inline int fcntl(int fd, int cmd, ...) { if (cmd == F_GETFD || cmd == F_SETFD) return 0;