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:
parent
faded2ccdb
commit
5eef65aa85
@ -14,6 +14,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "../linux/shmem.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);
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "mp_msg.h"
|
||||
|
Loading…
Reference in New Issue
Block a user