summaryrefslogtreecommitdiffstats
path: root/include/arch/linux-x86/AndroidConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/arch/linux-x86/AndroidConfig.h')
-rw-r--r--include/arch/linux-x86/AndroidConfig.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/arch/linux-x86/AndroidConfig.h b/include/arch/linux-x86/AndroidConfig.h
index 24f6ccc..26dcf1f 100644
--- a/include/arch/linux-x86/AndroidConfig.h
+++ b/include/arch/linux-x86/AndroidConfig.h
@@ -328,4 +328,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*/