diff tcp.c @ 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 c0667b2aa3ab
children c3102b189cb6
line wrap: on
line diff
--- 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 {