diff options
author | wm4 <wm4@nowhere> | 2013-12-18 17:12:16 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-18 17:12:16 +0100 |
commit | 5e0424f17f23c24e82a4325ff81e7ef67ac1337a (patch) | |
tree | d37b8102f99b93f418f11ba123855f92d5a4758b | |
parent | 4ed83fe2e5f16b572b5c6a49a82f264d3f80a5e1 (diff) | |
download | mpv-5e0424f17f23c24e82a4325ff81e7ef67ac1337a.tar.bz2 mpv-5e0424f17f23c24e82a4325ff81e7ef67ac1337a.tar.xz |
stream: move O_BINARY dummy definition
-rw-r--r-- | osdep/io.h | 4 | ||||
-rw-r--r-- | stream/stream.h | 4 |
2 files changed, 4 insertions, 4 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 diff --git a/stream/stream.h b/stream/stream.h index e1dc2a91d0..7d10eccd28 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -30,10 +30,6 @@ #include "bstr/bstr.h" -#ifndef O_BINARY -#define O_BINARY 0 -#endif - enum streamtype { STREAMTYPE_GENERIC = 0, STREAMTYPE_FILE, |