Code

Merge branch 'js/maint-windows'
authorJunio C Hamano <gitster@pobox.com>
Sun, 13 Jun 2010 18:21:30 +0000 (11:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 Jun 2010 18:21:30 +0000 (11:21 -0700)
* js/maint-windows:
  Recent MinGW has a C99 implementation of snprintf functions
  mingw: use _commit to implement fsync

Makefile
compat/mingw.h

index ff96f161980c00f25419fd603e64c5554c28d1cf..5fa893c6fa5602bba9e11684203d3be3985c3f52 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1040,7 +1040,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
index 0e3e74304138ab2f279c74599ee934ade72ae37d..f465566b7a5b8c852cad9b41e853aa97ba673b61 100644 (file)
@@ -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)