Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/c-auto-resets-attributes' into maint
[gitweb.git]
/
compat
/
mingw.h
diff --git
a/compat/mingw.h
b/compat/mingw.h
index 2cadb816eebf305e84181379f48aec061ea158f7..034fff9479d03d2a2e3c7017a4fe4131461f0ec6 100644
(file)
--- a/
compat/mingw.h
+++ b/
compat/mingw.h
@@
-67,6
+67,10
@@
typedef int pid_t;
#define F_SETFD 2
#define FD_CLOEXEC 0x1
+#if !defined O_CLOEXEC && defined O_NOINHERIT
+#define O_CLOEXEC O_NOINHERIT
+#endif
+
#ifndef EAFNOSUPPORT
#define EAFNOSUPPORT WSAEAFNOSUPPORT
#endif