summaryrefslogtreecommitdiffstats
path: root/include/arch/freebsd-x86
diff options
context:
space:
mode:
authorRaphael Moll <ralf@android.com>2011-03-02 11:38:35 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-03-02 11:38:35 -0800
commite24624da7d29374ad59d20312ca0e0ea2ea5596b (patch)
tree03a87c43ab9ebeae78ccd42f46e460eb0b625dc7 /include/arch/freebsd-x86
parente09c3fc7bdbbb05ff535852d6af3975ba5f23aee (diff)
parent733e47011023787cf996b1b4f232453b2324e303 (diff)
downloadsystem_core-e24624da7d29374ad59d20312ca0e0ea2ea5596b.zip
system_core-e24624da7d29374ad59d20312ca0e0ea2ea5596b.tar.gz
system_core-e24624da7d29374ad59d20312ca0e0ea2ea5596b.tar.bz2
am 733e4701: am fa5f2ad4: am bd8f4a85: Merge "Define O_BINARY for non-Windows platforms."
* commit '733e47011023787cf996b1b4f232453b2324e303': 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 d828bd5..9703c76 100644
--- a/include/arch/freebsd-x86/AndroidConfig.h
+++ b/include/arch/freebsd-x86/AndroidConfig.h
@@ -363,4 +363,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*/