diff options
author | Jeremy Lainé <jeremy.laine@m4x.org> | 2012-02-01 09:34:04 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-01 16:33:04 +0100 |
commit | 7b449abde29ba2da91cc3c22c5454f21200ece53 (patch) | |
tree | a118187cdcf464fcf63b8d57b65bf688b303b701 /src/network/kernel/qdnslookup_unix.cpp | |
parent | f0a8a4293a635614d1f6cea68c438f8f430f1bbc (diff) |
Fix QDnslookup build on FreeBSD
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>
Diffstat (limited to 'src/network/kernel/qdnslookup_unix.cpp')
-rw-r--r-- | src/network/kernel/qdnslookup_unix.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/kernel/qdnslookup_unix.cpp b/src/network/kernel/qdnslookup_unix.cpp index 21a7135106..7767dac45a 100644 --- a/src/network/kernel/qdnslookup_unix.cpp +++ b/src/network/kernel/qdnslookup_unix.cpp @@ -47,11 +47,9 @@ #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 |