summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-18 17:12:16 +0100
committerwm4 <wm4@nowhere>2013-12-18 17:12:16 +0100
commit5e0424f17f23c24e82a4325ff81e7ef67ac1337a (patch)
treed37b8102f99b93f418f11ba123855f92d5a4758b /osdep
parent4ed83fe2e5f16b572b5c6a49a82f264d3f80a5e1 (diff)
downloadmpv-5e0424f17f23c24e82a4325ff81e7ef67ac1337a.tar.bz2
mpv-5e0424f17f23c24e82a4325ff81e7ef67ac1337a.tar.xz
stream: move O_BINARY dummy definition
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