diff options
author | Elliott Hughes <enh@google.com> | 2015-02-03 22:56:42 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-03 22:56:42 +0000 |
commit | e17fc7cf3c4a59847c8341f75b7c76ee38aa1e63 (patch) | |
tree | 41c88e2f3a39a23647b6dcdd4e79f4bd7479d02a /include | |
parent | bb70f867c9c6b22fef620b14d47dbe8acd0e13af (diff) | |
parent | c3bf8d85b58c4a4711983adcd6321a580d6835b1 (diff) | |
download | system_core-e17fc7cf3c4a59847c8341f75b7c76ee38aa1e63.zip system_core-e17fc7cf3c4a59847c8341f75b7c76ee38aa1e63.tar.gz system_core-e17fc7cf3c4a59847c8341f75b7c76ee38aa1e63.tar.bz2 |
am c3bf8d85: am 9fc43358: Merge "Extra Win32 compatibility."
* commit 'c3bf8d85b58c4a4711983adcd6321a580d6835b1':
Extra Win32 compatibility.
Diffstat (limited to 'include')
-rw-r--r-- | include/utils/Compat.h | 6 |
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 |