summaryrefslogtreecommitdiffstats
path: root/stream/network.h
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-29 22:55:39 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-08-29 22:55:39 +0000
commitc152b07e661cbc274cd4979e6b5e053a64656476 (patch)
tree095a8e6af4d608af6c36496227665b14ac6d4921 /stream/network.h
parent2a90e559a97e6a77f2caaf8975f4333c2b8766f3 (diff)
downloadmpv-c152b07e661cbc274cd4979e6b5e053a64656476.tar.bz2
mpv-c152b07e661cbc274cd4979e6b5e053a64656476.tar.xz
Move duplicated '#define closesocket close' into network.h along with
network-related #include #ifdeffery. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27496 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/network.h')
-rw-r--r--stream/network.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/network.h b/stream/network.h
index b3d6abc8c4..5ec0233648 100644
--- a/stream/network.h
+++ b/stream/network.h
@@ -17,6 +17,10 @@
#include <netinet/in.h>
#include <sys/socket.h>
#include <arpa/inet.h>
+#define closesocket close
+#else
+#include <winsock2.h>
+#include <ws2tcpip.h>
#endif
#include "url.h"