Skip to content

Commit 04d30ce

Browse files
committed
Merge branch 'js/maint-windows'
* js/maint-windows: Recent MinGW has a C99 implementation of snprintf functions mingw: use _commit to implement fsync
2 parents 448598b + ec47a33 commit 04d30ce

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,6 @@ ifneq (,$(findstring MINGW,$(uname_S)))
10401040
NO_STRTOUMAX = YesPlease
10411041
NO_MKDTEMP = YesPlease
10421042
NO_MKSTEMPS = YesPlease
1043-
SNPRINTF_RETURNS_BOGUS = YesPlease
10441043
NO_SVN_TESTS = YesPlease
10451044
NO_PERL_MAKEMAKER = YesPlease
10461045
RUNTIME_PREFIX = YesPlease

compat/mingw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static inline int fork(void)
8080
static inline unsigned int alarm(unsigned int seconds)
8181
{ return 0; }
8282
static inline int fsync(int fd)
83-
{ return 0; }
83+
{ return _commit(fd); }
8484
static inline int getppid(void)
8585
{ return 1; }
8686
static inline void sync(void)

0 commit comments

Comments
 (0)