summaryrefslogtreecommitdiffstats
path: root/libmpdemux/asf_mmst_streaming.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/asf_mmst_streaming.c')
-rw-r--r--libmpdemux/asf_mmst_streaming.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libmpdemux/asf_mmst_streaming.c b/libmpdemux/asf_mmst_streaming.c
index 0e6b27ec59..4befcdc1fc 100644
--- a/libmpdemux/asf_mmst_streaming.c
+++ b/libmpdemux/asf_mmst_streaming.c
@@ -16,6 +16,12 @@
#include "config.h"
+#ifndef HAVE_WINSOCK2
+#define closesocket close
+#else
+#include <winsock2.h>
+#endif
+
#include "url.h"
#include "asf.h"
@@ -433,7 +439,7 @@ int asf_mmst_streaming_start(stream_t *stream)
int s = stream->fd;
if( s>0 ) {
- close( stream->fd );
+ closesocket( stream->fd );
stream->fd = -1;
}