From 75f6929a3669dd0b3123b6b3cd51ec09d0b234c4 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 20 May 2010 20:57:54 +0200 Subject: [PATCH] mingw: use _commit to implement fsync Signed-off-by: Erik Faye-Lund Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- compat/mingw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2