summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@googlemail.com>2010-05-20 18:57:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-05-20 23:12:46 (GMT)
commit75f6929a3669dd0b3123b6b3cd51ec09d0b234c4 (patch)
tree9058d2dff3d7477496cb80db2596cc44f83a4a87 /compat/mingw.h
parentc8b296450e5148c576697ea4709072b7855aacd5 (diff)
downloadgit-75f6929a3669dd0b3123b6b3cd51ec09d0b234c4.zip
git-75f6929a3669dd0b3123b6b3cd51ec09d0b234c4.tar.gz
git-75f6929a3669dd0b3123b6b3cd51ec09d0b234c4.tar.bz2
mingw: use _commit to implement fsync
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 0e3e743..f465566 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)