1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

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
This commit is contained in:
pl 2001-12-25 11:20:58 +00:00
parent faded2ccdb
commit 5eef65aa85
3 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,8 @@
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include <sys/types.h>
#include <unistd.h>
#include "../linux/shmem.h"

View File

@ -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);

View File

@ -7,6 +7,7 @@
#include <malloc.h>
#endif
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "mp_msg.h"