summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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"