20fdc39
From a8170a1061324ccff25ceda64b8a6a1d5fd2eaa5 Mon Sep 17 00:00:00 2001
20fdc39
From: =?UTF-8?q?Nicol=C3=A1s=20Alvarez?= <nicolas.alvarez@gmail.com>
20fdc39
Date: Fri, 5 Dec 2014 15:36:44 -0300
20fdc39
Subject: [PATCH 09/24] Fix includes of dcccommon.cpp on Windows.
20fdc39
20fdc39
We shouldn't include BSD sockets headers on Windows.
20fdc39
I haven't tested this on MinGW yet though.
20fdc39
---
20fdc39
 src/dcc/dcccommon.cpp | 6 +++---
20fdc39
 1 file changed, 3 insertions(+), 3 deletions(-)
20fdc39
20fdc39
diff --git a/src/dcc/dcccommon.cpp b/src/dcc/dcccommon.cpp
20fdc39
index 6f1c572..a9908b2 100644
20fdc39
--- a/src/dcc/dcccommon.cpp
20fdc39
+++ b/src/dcc/dcccommon.cpp
20fdc39
@@ -18,16 +18,16 @@
20fdc39
 
20fdc39
 #include <cstdlib>
20fdc39
 #include <sys/types.h>
20fdc39
-#include <netinet/in.h>
20fdc39
-#include <sys/socket.h>
20fdc39
 #ifndef Q_CC_MSVC
20fdc39
+#   include <netinet/in.h>
20fdc39
+#   include <sys/socket.h>
20fdc39
 #   include <net/if.h>
20fdc39
 #   include <sys/ioctl.h>
20fdc39
 #   ifdef HAVE_STROPTS_H
20fdc39
 #       include <stropts.h>
20fdc39
 #   endif
20fdc39
+#   include <arpa/inet.h>
20fdc39
 #endif
20fdc39
-#include <arpa/inet.h>
20fdc39
 
20fdc39
 #include <QHostAddress>
20fdc39
 #include <QTcpServer>
20fdc39
-- 
20fdc39
2.1.0
20fdc39