author | Junio C Hamano <gitster@pobox.com> | |
Sun, 13 Jun 2010 18:21:30 +0000 (11:21 -0700) | ||
committer | Junio 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
Recent MinGW has a C99 implementation of snprintf functions
mingw: use _commit to implement fsync
Makefile | patch | blob | history | |
compat/mingw.h | patch | blob | history |
diff --git a/Makefile b/Makefile
index ff96f161980c00f25419fd603e64c5554c28d1cf..5fa893c6fa5602bba9e11684203d3be3985c3f52 100644 (file)
--- a/Makefile
+++ b/Makefile
NO_STRTOUMAX = YesPlease
NO_MKDTEMP = YesPlease
NO_MKSTEMPS = YesPlease
- SNPRINTF_RETURNS_BOGUS = YesPlease
NO_SVN_TESTS = YesPlease
NO_PERL_MAKEMAKER = YesPlease
RUNTIME_PREFIX = YesPlease
diff --git a/compat/mingw.h b/compat/mingw.h
index 0e3e74304138ab2f279c74599ee934ade72ae37d..f465566b7a5b8c852cad9b41e853aa97ba673b61 100644 (file)
--- a/compat/mingw.h
+++ b/compat/mingw.h
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)