Mercurial > mplayer.hg
changeset 3726:1acf2f1f9dc8
missing #include's
Note: stream.h contains static inline functions, which is not quite clean :/
author | pl |
---|---|
date | Tue, 25 Dec 2001 11:20:58 +0000 |
parents | ba98028ddc27 |
children | deba2b4fe4b4 |
files | libmpdemux/cache2.c libmpdemux/stream.h libmpdemux/video.c |
diffstat | 3 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/cache2.c Tue Dec 25 11:14:25 2001 +0000 +++ b/libmpdemux/cache2.c Tue Dec 25 11:20:58 2001 +0000 @@ -14,6 +14,8 @@ #include <stdlib.h> #include <string.h> #include <signal.h> +#include <sys/types.h> +#include <unistd.h> #include "../linux/shmem.h"
--- a/libmpdemux/stream.h Tue Dec 25 11:14:25 2001 +0000 +++ b/libmpdemux/stream.h Tue Dec 25 11:20:58 2001 +0000 @@ -53,6 +53,8 @@ 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);