summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 7d6619f75b..523da2ce00 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