diff options
author | François Revol <revol@free.fr> | 2007-02-15 15:39:39 +0000 |
---|---|---|
committer | François Revol <revol@free.fr> | 2007-02-15 15:39:39 +0000 |
commit | 457b101e42ed805ce1bd45f971ca333e96bea4ea (patch) | |
tree | b9fa0b635f19eabb91baccd69cdd8b531f133fa3 /libavformat/os_support.h | |
parent | 36c07acd595288c2747d491993d044b81593b00c (diff) | |
download | ffmpeg-457b101e42ed805ce1bd45f971ca333e96bea4ea.tar.gz |
Make sure we don't try to emulate poll() when it's there if --disable-ffserver... 10l
Originally committed as revision 7991 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r-- | libavformat/os_support.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 34c2fabcd3..9d7ab4c7bb 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -75,6 +75,7 @@ static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1 #define closesocket close #endif +#ifdef CONFIG_FFSERVER #ifndef HAVE_SYS_POLL_H typedef unsigned long nfds_t; @@ -101,5 +102,6 @@ struct pollfd { extern int poll(struct pollfd *fds, nfds_t numfds, int timeout); #endif /* HAVE_SYS_POLL_H */ +#endif /* CONFIG_FFSERVER */ #endif /* _OS_SUPPORT_H */ |