From 75f6929a3669dd0b3123b6b3cd51ec09d0b234c4 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 20 May 2010 20:57:54 +0200 Subject: mingw: use _commit to implement fsync Signed-off-by: Erik Faye-Lund Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano 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) -- cgit v0.10.2-6-g49f6 From ec47a33fd2c3b679c3d8cbd440752414adb56ce9 Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Mon, 20 Jul 2009 22:15:07 +0200 Subject: Recent MinGW has a C99 implementation of snprintf functions Starting with MinGW 3.14, released end of 2007, a working snprintf is available. This means we do not need our own replacement that works around the broken implementation in Microsoft's C runtime. People who build git in an old MinGW environment are expected to set SNPRINTF_RETURNS_BOGUS in their config.mak. msysgit is sufficiently recent, of course. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano diff --git a/Makefile b/Makefile index eb1d162..7a014b1 100644 --- a/Makefile +++ b/Makefile @@ -1026,7 +1026,6 @@ ifneq (,$(findstring MINGW,$(uname_S))) NO_STRTOUMAX = YesPlease NO_MKDTEMP = YesPlease NO_MKSTEMPS = YesPlease - SNPRINTF_RETURNS_BOGUS = YesPlease NO_SVN_TESTS = YesPlease NO_PERL_MAKEMAKER = YesPlease RUNTIME_PREFIX = YesPlease -- cgit v0.10.2-6-g49f6