summaryrefslogtreecommitdiffstats
path: root/stream/rtp.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-31 13:59:54 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-31 13:59:54 +0000
commitf27f04a53d56a5b6ca89e80a67c140b6f009c439 (patch)
treea3c6f6918c8acb0d6788041fed312c78f00b5f11 /stream/rtp.c
parent133f1f8872559f88dcd557af9122e7acece169ac (diff)
downloadmpv-f27f04a53d56a5b6ca89e80a67c140b6f009c439.tar.bz2
mpv-f27f04a53d56a5b6ca89e80a67c140b6f009c439.tar.xz
Revert moving closesocket definition and network headers to network.h.
This caused lots of trouble on MinGW, we need a different solution. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27504 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/rtp.c')
-rw-r--r--stream/rtp.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/stream/rtp.c b/stream/rtp.c
index c2a3857651..f4b84fc3b4 100644
--- a/stream/rtp.c
+++ b/stream/rtp.c
@@ -12,9 +12,17 @@
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>
-#include <errno.h>
#include "config.h"
-#include "network.h"
+#ifndef HAVE_WINSOCK2_H
+#include <netinet/in.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
+#define closesocket close
+#else
+#include <winsock2.h>
+#include <ws2tcpip.h>
+#endif
+#include <errno.h>
#include "stream.h"
/* MPEG-2 TS RTP stack */