summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Albert2015-03-27 01:29:39 -0500
committerGerrit Code Review2015-03-27 01:29:40 -0500
commit6ccfabcf5d547a04a1e6c5237f20670230a7f6a4 (patch)
treed0f34a7eb7a6e7b7a7defc445fac93b02daf34bf
parent87378814a06f6fa2d22026cbcb2f54be4b65e6c6 (diff)
parentc6b30f376d1aa6113bfd8b8cbafe883c21ae5203 (diff)
downloadplatform-system-core-6ccfabcf5d547a04a1e6c5237f20670230a7f6a4.tar.gz
platform-system-core-6ccfabcf5d547a04a1e6c5237f20670230a7f6a4.tar.xz
platform-system-core-6ccfabcf5d547a04a1e6c5237f20670230a7f6a4.zip
Merge "O_CLOEXEC is O_NOINHERIT on Windows."
-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)
36#endif /* __APPLE__ */ 36#endif /* __APPLE__ */
37 37
38#if defined(_WIN32) 38#if defined(_WIN32)
39#define O_CLOEXEC 0 39#define O_CLOEXEC O_NOINHERIT
40#define O_NOFOLLOW 0 40#define O_NOFOLLOW 0
41#define DEFFILEMODE 0666 41#define DEFFILEMODE 0666
42#endif /* _WIN32 */ 42#endif /* _WIN32 */