summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'osdep')
-rw-r--r--osdep/io.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/osdep/io.h b/osdep/io.h
index aa20446210..9f715d904e 100644
--- a/osdep/io.h
+++ b/osdep/io.h
@@ -26,6 +26,10 @@
#include <sys/stat.h>
#include <fcntl.h>
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
// This is in POSIX.1-2008, but support outside of Linux is scarce.
#ifndef O_CLOEXEC
#define O_CLOEXEC 0