diff --git a/src/network/kernel/qhostinfo_unix.cpp b/src/network/kernel/qhostinfo_unix.cpp index 42194fb8b3..ed8b06a613 100644 --- a/src/network/kernel/qhostinfo_unix.cpp +++ b/src/network/kernel/qhostinfo_unix.cpp @@ -13,7 +13,10 @@ #include #include #include -#include + +#if QT_CONFIG(libresolv) +# include +#endif #ifndef _PATH_RESCONF # define _PATH_RESCONF "/etc/resolv.conf"