[MPlayer-cvslog] r27352 - trunk/stream/librtsp/rtsp.c

reimar subversion at mplayerhq.hu
Sat Jul 26 22:58:50 CEST 2008


Author: reimar
Date: Sat Jul 26 22:58:50 2008
New Revision: 27352

Log:
Do not include sys/socket.h when using winsock2, it is pointless
and breaks compilation under MinGW.

Modified:
   trunk/stream/librtsp/rtsp.c

Modified: trunk/stream/librtsp/rtsp.c
==============================================================================
--- trunk/stream/librtsp/rtsp.c	(original)
+++ trunk/stream/librtsp/rtsp.c	Sat Jul 26 22:58:50 2008
@@ -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"



More information about the MPlayer-cvslog mailing list