summaryrefslogtreecommitdiff
path: root/core/fxcrt/fxcrt_posix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/fxcrt_posix.cpp')
-rw-r--r--core/fxcrt/fxcrt_posix.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/fxcrt/fxcrt_posix.cpp b/core/fxcrt/fxcrt_posix.cpp
index 3afe2c32d5..ca4ac161a4 100644
--- a/core/fxcrt/fxcrt_posix.cpp
+++ b/core/fxcrt/fxcrt_posix.cpp
@@ -11,6 +11,14 @@
#include "core/fxcrt/fx_basic.h"
#include "third_party/base/ptr_util.h"
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif // O_BINARY
+
+#ifndef O_LARGEFILE
+#define O_LARGEFILE 0
+#endif // O_LARGEFILE
+
#if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || \
_FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || \
_FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_