diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-09-26 02:12:37 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-09-26 02:12:37 +0000 |
commit | 6ad1c9c992251018130e47618cd4990e4415546c (patch) | |
tree | 773bda9932d3f5882d0185aea793126fcf48809b /libavformat | |
parent | 644b0c4c92f8d1694e43804fce393d70ace7b513 (diff) | |
download | ffmpeg-6ad1c9c992251018130e47618cd4990e4415546c.tar.gz |
only include sys/select.h if present, fix mingw compilation
Originally committed as revision 15420 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/rtsp.c | 2 | ||||
-rw-r--r-- | libavformat/tcp.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index d3f1f1c1a4..7f29c4bb63 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -26,7 +26,9 @@ #include "avformat.h" #include <sys/time.h> +#ifdef HAVE_SYS_SELECT_H #include <sys/select.h> +#endif #include <strings.h> #include "network.h" #include "rtsp.h" diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 4ab7086677..05844517e5 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -22,7 +22,9 @@ #include <unistd.h> #include "network.h" #include "os_support.h" +#ifdef HAVE_SYS_SELECT_H #include <sys/select.h> +#endif #include <sys/time.h> typedef struct TCPContext { |