From 714196d05c5952eb09ca718955de6e4c2d4cfd92 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 3 Feb 2015 14:26:58 -0800 Subject: [PATCH] Extra Win32 compatibility. Change-Id: Ibc583aba580f4fc15c243f495ead44b2ce4c6e5e --- include/utils/Compat.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/utils/Compat.h b/include/utils/Compat.h index 0df40a15e..a238afe74 100644 --- a/include/utils/Compat.h +++ b/include/utils/Compat.h @@ -35,6 +35,12 @@ 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_NOFOLLOW 0 +#define DEFFILEMODE 0666 +#endif /* _WIN32 */ + #if HAVE_PRINTF_ZD # define ZD "%zd" # define ZD_TYPE ssize_t