Skip to content

Commit

Permalink
disable resolv on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Jul 4, 2024
1 parent 55d13ff commit d493669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/re-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ if(HAVE_UNISTD_H)
list(APPEND RE_DEFINITIONS HAVE_UNISTD_H)
endif()

if(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
set(HAVE_RESOLV)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
check_symbol_exists(res_init resolv.h HAVE_RESOLV)
else()
check_symbol_exists(res_ninit resolv.h HAVE_RESOLV)
Expand Down

0 comments on commit d493669

Please sign in to comment.