summaryrefslogtreecommitdiffstats
path: root/stream/librtsp/rtsp.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-26 20:58:50 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-07-26 20:58:50 +0000
commitfb2b4dea1c34e4e75158b5e22b8302d19a090910 (patch)
tree8864039878f3affec7fc7c8c421b590c501988bf /stream/librtsp/rtsp.c
parent65f404c85f4f7028401181277313b9589ed810cf (diff)
downloadmpv-fb2b4dea1c34e4e75158b5e22b8302d19a090910.tar.bz2
mpv-fb2b4dea1c34e4e75158b5e22b8302d19a090910.tar.xz
Do not include sys/socket.h when using winsock2, it is pointless
and breaks compilation under MinGW. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27352 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/librtsp/rtsp.c')
-rw-r--r--stream/librtsp/rtsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream/librtsp/rtsp.c b/stream/librtsp/rtsp.c
index d69c684c19..89a3b47584 100644
--- a/stream/librtsp/rtsp.c
+++ b/stream/librtsp/rtsp.c
@@ -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"