diff options
author | komh <komh@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-06 07:24:41 +0000 |
---|---|---|
committer | komh <komh@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-06 07:24:41 +0000 |
commit | dd491c0d289bb00b2d05fb75e11b52f5a9584f26 (patch) | |
tree | f3a63c1a5ee8ddecbe20fc7c7ec7eb4e1318a860 /stream/stream.h | |
parent | ca7cbc07244e261910cd651e2005bd6a9a7132be (diff) | |
download | mpv-dd491c0d289bb00b2d05fb75e11b52f5a9584f26.tar.bz2 mpv-dd491c0d289bb00b2d05fb75e11b52f5a9584f26.tar.xz |
Define O_BINARY in stream/stream.h unless it is defined yet, and use it
in other places.
This removes platform specific checks and prevents repeated definitions
of O_BINARY.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30850 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index 7774651611..2810839959 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -25,6 +25,11 @@ #include <string.h> #include <inttypes.h> #include <sys/types.h> +#include <fcntl.h> + +#ifndef O_BINARY +#define O_BINARY 0 +#endif #define STREAMTYPE_DUMMY -1 // for placeholders, when the actual reading is handled in the demuxer #define STREAMTYPE_FILE 0 // read from seekable file |