diff options
Diffstat (limited to 'stream/network.c')
-rw-r--r-- | stream/network.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/stream/network.c b/stream/network.c index 282c9c2a28..3f2391e60f 100644 --- a/stream/network.c +++ b/stream/network.c @@ -18,6 +18,14 @@ #include "mp_msg.h" #include "help_mp.h" + +#ifndef HAVE_WINSOCK2_H +#define closesocket close +#else +#include <winsock2.h> +#include <ws2tcpip.h> +#endif + #include "stream.h" #include "libmpdemux/demuxer.h" #include "m_config.h" |