summaryrefslogtreecommitdiffstats
path: root/stream/asf_streaming.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/asf_streaming.c')
-rw-r--r--stream/asf_streaming.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/stream/asf_streaming.c b/stream/asf_streaming.c
index 7a7ac86e51..67dc7278b8 100644
--- a/stream/asf_streaming.c
+++ b/stream/asf_streaming.c
@@ -8,6 +8,13 @@
#include "config.h"
#include "mp_msg.h"
#include "help_mp.h"
+
+#ifndef HAVE_WINSOCK2_H
+#define closesocket close
+#else
+#include <winsock2.h>
+#endif
+
#include "url.h"
#include "http.h"
#include "libmpdemux/asf.h"