summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-25 11:20:58 +0000
committerpl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-12-25 11:20:58 +0000
commit5eef65aa85c53f3be57a2031e13af4179f0d6fcc (patch)
treeece4255caa2854bb3556eda8959170d564aa9c26 /libmpdemux
parentfaded2ccdbdc7c3e2c90368edc74576d75efd944 (diff)
downloadmpv-5eef65aa85c53f3be57a2031e13af4179f0d6fcc.tar.bz2
mpv-5eef65aa85c53f3be57a2031e13af4179f0d6fcc.tar.xz
missing #include's
Note: stream.h contains static inline functions, which is not quite clean :/ git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3727 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/cache2.c2
-rw-r--r--libmpdemux/stream.h2
-rw-r--r--libmpdemux/video.c1
3 files changed, 5 insertions, 0 deletions
diff --git a/libmpdemux/cache2.c b/libmpdemux/cache2.c
index 8e935a6c06..4b6deb0cdc 100644
--- a/libmpdemux/cache2.c
+++ b/libmpdemux/cache2.c
@@ -14,6 +14,8 @@
#include <stdlib.h>
#include <string.h>
#include <signal.h>
+#include <sys/types.h>
+#include <unistd.h>
#include "../linux/shmem.h"
diff --git a/libmpdemux/stream.h b/libmpdemux/stream.h
index 184444971b..f6734561cf 100644
--- a/libmpdemux/stream.h
+++ b/libmpdemux/stream.h
@@ -53,6 +53,8 @@ void stream_enable_cache(stream_t *stream,int size,int min,int prefill);
int cache_stream_fill_buffer(stream_t *s);
int cache_stream_seek_long(stream_t *s,off_t pos);
+#include <string.h>
+
inline static int stream_read_char(stream_t *s){
return (s->buf_pos<s->buf_len)?s->buffer[s->buf_pos++]:
(cache_stream_fill_buffer(s)?s->buffer[s->buf_pos++]:-256);
diff --git a/libmpdemux/video.c b/libmpdemux/video.c
index 09b7e1ae54..e1bce99b6c 100644
--- a/libmpdemux/video.c
+++ b/libmpdemux/video.c
@@ -7,6 +7,7 @@
#include <malloc.h>
#endif
#include <stdlib.h>
+#include <string.h>
#include <unistd.h>
#include "mp_msg.h"