changeset 3941:53c5b89b8dff libavformat

only include sys/select.h if present, fix mingw compilation
author bcoudurier
date Fri, 26 Sep 2008 02:12:37 +0000
parents 77f3d0224ee9
children ffb410d82ad3
files rtsp.c tcp.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Fri Sep 26 02:07:56 2008 +0000
+++ b/rtsp.c	Fri Sep 26 02:12:37 2008 +0000
@@ -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"
--- a/tcp.c	Fri Sep 26 02:07:56 2008 +0000
+++ b/tcp.c	Fri Sep 26 02:12:37 2008 +0000
@@ -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 {