summaryrefslogtreecommitdiff
path: root/include/utils
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-03-26 23:22:56 -0700
committerDan Albert <danalbert@google.com>2015-03-26 23:24:15 -0700
commitc6b30f376d1aa6113bfd8b8cbafe883c21ae5203 (patch)
treed0f34a7eb7a6e7b7a7defc445fac93b02daf34bf /include/utils
parent87378814a06f6fa2d22026cbcb2f54be4b65e6c6 (diff)
O_CLOEXEC is O_NOINHERIT on Windows.
Change-Id: I714aa08344fa10684c99651f953834086cc162c7
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/Compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/utils/Compat.h b/include/utils/Compat.h
index a238afe74..ca4a8e0d8 100644
--- a/include/utils/Compat.h
+++ b/include/utils/Compat.h
@@ -36,7 +36,7 @@ static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset)
#endif /* __APPLE__ */
#if defined(_WIN32)
-#define O_CLOEXEC 0
+#define O_CLOEXEC O_NOINHERIT
#define O_NOFOLLOW 0
#define DEFFILEMODE 0666
#endif /* _WIN32 */