diff options
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 { |