only include sys/select.h if present, fix mingw compilation
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 26 Sep 2008 02:12:37 +0000 (02:12 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Fri, 26 Sep 2008 02:12:37 +0000 (02:12 +0000)
Originally committed as revision 15420 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c
libavformat/tcp.c

index d3f1f1c..7f29c4b 100644 (file)
@@ -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"
index 4ab7086..0584451 100644 (file)
@@ -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 {