changeset 27320:44341e4d5621

Do not include sys/socket.h when using winsock2, it is pointless and breaks compilation under MinGW.
author reimar
date Sat, 26 Jul 2008 20:58:50 +0000
parents 09cf111f68b8
children 2c0abab6b9b7
files stream/librtsp/rtsp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/librtsp/rtsp.c	Sat Jul 26 18:36:48 2008 +0000
+++ b/stream/librtsp/rtsp.c	Sat Jul 26 20:58:50 2008 +0000
@@ -41,10 +41,11 @@
 #include <time.h>
 #include <sys/time.h>
 #include <sys/types.h>
-#include <sys/socket.h>
 #include <inttypes.h>
 #ifdef HAVE_WINSOCK2
 #include <winsock2.h>
+#else
+#include <sys/socket.h>
 #endif
 #include "mp_msg.h"
 #include "rtsp.h"