summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libhb/ports.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/libhb/ports.c b/libhb/ports.c
index 7e5421da1..dbfcb66b3 100644
--- a/libhb/ports.c
+++ b/libhb/ports.c
@@ -27,6 +27,16 @@
#include <machine/cpu.h>
#endif
+#ifdef SYS_MINGW
+#include <winsock2.h>
+#include <ws2tcpip.h>
+#else
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netdb.h>
+#include <netinet/in.h>
+#endif
+
#ifdef SYS_CYGWIN
#include <windows.h>
#endif
@@ -43,17 +53,6 @@
#include <time.h>
#include <sys/time.h>
-
-#ifdef SYS_MINGW
-#include <winsock2.h>
-#include <ws2tcpip.h>
-#else
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netdb.h>
-#include <netinet/in.h>
-#endif
-
#if defined( SYS_LINUX )
#include <linux/cdrom.h>
#include <fcntl.h>