From 6ad1c9c992251018130e47618cd4990e4415546c Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Fri, 26 Sep 2008 02:12:37 +0000 Subject: [PATCH] only include sys/select.h if present, fix mingw compilation Originally committed as revision 15420 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 2 ++ libavformat/tcp.c | 2 ++ 2 files changed, 4 insertions(+) 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 +#ifdef HAVE_SYS_SELECT_H #include +#endif #include #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 #include "network.h" #include "os_support.h" +#ifdef HAVE_SYS_SELECT_H #include +#endif #include typedef struct TCPContext {