aboutsummaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@googlemail.com>2010-05-20 20:57:54 +0200
committerJunio C Hamano <gitster@pobox.com>2010-05-20 16:12:46 -0700
commit75f6929a3669dd0b3123b6b3cd51ec09d0b234c4 (patch)
tree9058d2dff3d7477496cb80db2596cc44f83a4a87 /compat
parentc8b296450e5148c576697ea4709072b7855aacd5 (diff)
downloadgit-75f6929a3669dd0b3123b6b3cd51ec09d0b234c4.tar.gz
git-75f6929a3669dd0b3123b6b3cd51ec09d0b234c4.tar.xz
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')
-rw-r--r--compat/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 0e3e74304..f465566b7 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)