Fix QDnslookup build on FreeBSD
authorJeremy Lainé <jeremy.laine@m4x.org>
Wed, 1 Feb 2012 08:34:04 +0000 (09:34 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Feb 2012 15:33:04 +0000 (16:33 +0100)
Unify the includes for resolver function on unix-like platforms
to avoid build failures on BSD platforms.

Change-Id: I9accd7077d5a319a2c93642e011492d0fc779394
Reviewed-by: Holger Freyther <holger+qt@freyther.de>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/network/kernel/qdnslookup_unix.cpp

index 21a7135..7767dac 100644 (file)
 #include <private/qmutexpool_p.h>
 
 #include <sys/types.h>
-#include <netdb.h>
-#if defined(Q_OS_MAC)
+#include <netinet/in.h>
 #include <arpa/nameser.h>
 #include <arpa/nameser_compat.h>
-#endif
 #include <resolv.h>
 
 QT_BEGIN_NAMESPACE