summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/netstream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/netstream.h b/stream/netstream.h
index 4326a9d3e4..4d61b01967 100644
--- a/stream/netstream.h
+++ b/stream/netstream.h
@@ -14,7 +14,9 @@
#include <stdlib.h>
#include <string.h>
#include <errno.h>
+#ifndef HAVE_WINSOCK2
#include <sys/socket.h>
+#endif
#include "mp_msg.h"
#include "mpbswap.h"