O_CLOEXEC is O_NOINHERIT on Windows.

Change-Id: I714aa08344fa10684c99651f953834086cc162c7
This commit is contained in:
Dan Albert 2015-03-26 23:22:56 -07:00
parent 87378814a0
commit c6b30f376d
1 changed files with 1 additions and 1 deletions

View File

@ -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 */