diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-08-31 13:59:54 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-08-31 13:59:54 +0000 |
commit | f27f04a53d56a5b6ca89e80a67c140b6f009c439 (patch) | |
tree | a3c6f6918c8acb0d6788041fed312c78f00b5f11 /stream/stream_netstream.c | |
parent | 133f1f8872559f88dcd557af9122e7acece169ac (diff) | |
download | mpv-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/stream_netstream.c')
-rw-r--r-- | stream/stream_netstream.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/stream/stream_netstream.c b/stream/stream_netstream.c index 36bb72ccc2..4a3d2f04ed 100644 --- a/stream/stream_netstream.c +++ b/stream/stream_netstream.c @@ -42,6 +42,15 @@ #include <inttypes.h> #include <errno.h> +#ifndef HAVE_WINSOCK2_H +#define closesocket close +#include <sys/socket.h> +#include <netinet/in.h> +#include <arpa/inet.h> +#else +#include <winsock2.h> +#endif + #include "mp_msg.h" #include "stream.h" #include "help_mp.h" |