From d580acbc29c8e4a5c2a117ff6cec0fcb6027f8c3 Mon Sep 17 00:00:00 2001 From: Un1q32 Date: Fri, 1 Aug 2025 13:15:43 -0400 Subject: check for resolv.h and arpa/nameser.h --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a035bb..17e5a0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -378,6 +378,16 @@ if(HAVE_NETINET_IP_H) add_definitions(-DHAVE_NETINET_IP_H) endif() +check_include_files(resolv.h HAVE_RESOLV_H) +if(HAVE_RESOLV_H) + add_definitions(-DHAVE_RESOLV_H) +endif() + +check_include_files(arpa/nameser.h HAVE_ARPA_NAMESER_H) +if(HAVE_ARPA_NAMESER_H) + add_definitions(-DHAVE_ARPA_NAMESER_H) +endif() + # This isn't ready for universal binaries yet, since we do conditional # compilation based on the architecture, but this makes cross compiling for a # single architecture work on macOS at least. -- cgit v1.2.3-55-g6feb