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