diff options
author | Raphael Moll <ralf@android.com> | 2011-03-01 22:33:21 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-03-01 22:33:21 -0800 |
commit | 733e47011023787cf996b1b4f232453b2324e303 (patch) | |
tree | 30d6e8ff678cf9ea59f8740ccd46f5c2769aa441 /include/arch/freebsd-x86 | |
parent | 0c8b18b96038c1634735cdae2bd5f8cf25c7dbef (diff) | |
parent | fa5f2ad48b0a22d963b11b87cb94d5d1960c42ff (diff) | |
download | system_core-733e47011023787cf996b1b4f232453b2324e303.zip system_core-733e47011023787cf996b1b4f232453b2324e303.tar.gz system_core-733e47011023787cf996b1b4f232453b2324e303.tar.bz2 |
am fa5f2ad4: am bd8f4a85: Merge "Define O_BINARY for non-Windows platforms."
* commit 'fa5f2ad48b0a22d963b11b87cb94d5d1960c42ff':
Define O_BINARY for non-Windows platforms.
Diffstat (limited to 'include/arch/freebsd-x86')
-rw-r--r-- | include/arch/freebsd-x86/AndroidConfig.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/arch/freebsd-x86/AndroidConfig.h b/include/arch/freebsd-x86/AndroidConfig.h index 992b689..ed5af59 100644 --- a/include/arch/freebsd-x86/AndroidConfig.h +++ b/include/arch/freebsd-x86/AndroidConfig.h @@ -358,4 +358,12 @@ */ #define HAVE_PRINTF_ZD 1 +/* + * We need to open binary files using O_BINARY on Windows. + * Most systems lack (and actually don't need) this flag. + */ +#ifndef O_BINARY +#define O_BINARY 0 +#endif + #endif /*_ANDROID_CONFIG_H*/ |