Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jul 4, 2024
1 parent a33988e commit 1639d06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/re-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
else()
check_symbol_exists(res_ninit resolv.h HAVE_RESOLV)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
if(HAVE_RESOLV AND ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
list(APPEND RE_DEFINITIONS HAVE_RESOLV)
set(RESOLV_LIBRARY) # Provided by libc
elseif(HAVE_RESOLV)
set(RESOLV_LIBRARY resolv)
list(APPEND RE_DEFINITIONS HAVE_RESOLV)
Expand Down

0 comments on commit 1639d06

Please sign in to comment.