summaryrefslogtreecommitdiffstats
path: root/include/utils
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-03 14:26:58 -0800
committerElliott Hughes <enh@google.com>2015-02-03 14:26:58 -0800
commit714196d05c5952eb09ca718955de6e4c2d4cfd92 (patch)
tree223df417489a186d0fdfd3d706e331800a6c9149 /include/utils
parent6c6f39678cf41a52826b4b4551f39d8256855f54 (diff)
downloadsystem_core-714196d05c5952eb09ca718955de6e4c2d4cfd92.zip
system_core-714196d05c5952eb09ca718955de6e4c2d4cfd92.tar.gz
system_core-714196d05c5952eb09ca718955de6e4c2d4cfd92.tar.bz2
Extra Win32 compatibility.
Change-Id: Ibc583aba580f4fc15c243f495ead44b2ce4c6e5e
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/Compat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/utils/Compat.h b/include/utils/Compat.h
index 0df40a1..a238afe 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