From a93dae7b4e059de0e2b80c4f1f47e7da6610428e Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Thu, 4 Jul 2024 17:15:51 +0200 Subject: [PATCH] disable resolv on FreeBSD --- cmake/re-config.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/re-config.cmake b/cmake/re-config.cmake index 426a79db4..18b5dc8b5 100644 --- a/cmake/re-config.cmake +++ b/cmake/re-config.cmake @@ -55,7 +55,7 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") else() check_symbol_exists(res_ninit resolv.h HAVE_RESOLV) endif() -if(HAVE_RESOLV) +if(HAVE_RESOLV AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") set(RESOLV_LIBRARY resolv) list(APPEND RE_DEFINITIONS HAVE_RESOLV) else()