From e73e972aa602906f15041ac0d7d6151883532599 Mon Sep 17 00:00:00 2001 From: Jacek Poplawski Date: Mon, 24 Jul 2023 09:15:27 +0200 Subject: [PATCH] Don't include resolv.h when libresolv is disabled Change-Id: I5b216ed02452549b69847b34139613669905023c Reviewed-by: Thiago Macieira --- src/network/kernel/qhostinfo_unix.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"