From c6b30f376d1aa6113bfd8b8cbafe883c21ae5203 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 26 Mar 2015 23:22:56 -0700 Subject: [PATCH] O_CLOEXEC is O_NOINHERIT on Windows. Change-Id: I714aa08344fa10684c99651f953834086cc162c7 --- include/utils/Compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */