summaryrefslogtreecommitdiffstats
path: root/TOOLS/netstream/netstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/netstream/netstream.c')
-rw-r--r--TOOLS/netstream/netstream.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/TOOLS/netstream/netstream.c b/TOOLS/netstream/netstream.c
index a79def31bf..0cf9e121b1 100644
--- a/TOOLS/netstream/netstream.c
+++ b/TOOLS/netstream/netstream.c
@@ -28,11 +28,17 @@
#include <inttypes.h>
#include <errno.h>
#include <signal.h>
-
#include <sys/types.h>
+
+#include "config.h"
+
+#ifndef HAVE_WINSOCK2
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#else
+#include <winsock2.h>
+#endif
#include <libmpdemux/stream.h>
#include <mp_msg.h>