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