diff options
| author | Dan Albert <danalbert@google.com> | 2015-03-26 23:22:56 -0700 |
|---|---|---|
| committer | Dan Albert <danalbert@google.com> | 2015-03-26 23:24:15 -0700 |
| commit | c6b30f376d1aa6113bfd8b8cbafe883c21ae5203 (patch) | |
| tree | d0f34a7eb7a6e7b7a7defc445fac93b02daf34bf /include | |
| parent | 87378814a06f6fa2d22026cbcb2f54be4b65e6c6 (diff) | |
| download | core-c6b30f376d1aa6113bfd8b8cbafe883c21ae5203.tar.gz core-c6b30f376d1aa6113bfd8b8cbafe883c21ae5203.tar.bz2 core-c6b30f376d1aa6113bfd8b8cbafe883c21ae5203.zip | |
O_CLOEXEC is O_NOINHERIT on Windows.
Change-Id: I714aa08344fa10684c99651f953834086cc162c7
Diffstat (limited to 'include')
| -rw-r--r-- | include/utils/Compat.h | 2 |
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 */ |
