summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/stream_ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/stream_ftp.c b/libmpdemux/stream_ftp.c
index 1260f19291..e3bdeb4e75 100644
--- a/libmpdemux/stream_ftp.c
+++ b/libmpdemux/stream_ftp.c
@@ -7,12 +7,12 @@
#include <stdio.h>
#include <sys/types.h>
-#include <sys/socket.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#ifndef HAVE_WINSOCK2
+#include <sys/socket.h>
#define closesocket close
#else
#include <winsock2.h>