summaryrefslogtreecommitdiffstats
path: root/include/arch/freebsd-x86
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2011-03-01 22:33:21 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-01 22:33:21 -0800
commit733e47011023787cf996b1b4f232453b2324e303 (patch)
tree30d6e8ff678cf9ea59f8740ccd46f5c2769aa441 /include/arch/freebsd-x86
parent0c8b18b96038c1634735cdae2bd5f8cf25c7dbef (diff)
parentfa5f2ad48b0a22d963b11b87cb94d5d1960c42ff (diff)
downloadsystem_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.h8
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*/