SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,21 @@
https://github.com/Cisco-Talos/clamav/issues/340
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -654,10 +654,12 @@ else()
if(APPLE)
set(BIND_8_COMPAT 1)
endif()
- check_include_file("resolv.h" HAVE_RESOLV_H)
- if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD AND EXISTS /usr/include/resolv.h)
- # This hack because check_include_file() can't find "resolv.h" on FreeBSD.
+ if(CMAKE_SYSTEM_NAME MATCHES ".*BSD" AND EXISTS /usr/include/resolv.h)
+ # This hack because check_include_file() can't include supplementary
+ # headers, and resolv.h on BSD systems typically needs netinet/in.h
set(HAVE_RESOLV_H 1)
+ else()
+ check_include_file("resolv.h" HAVE_RESOLV_H)
endif()
check_include_file("dirent.h" HAVE_DIRENT_H)
check_include_file("dlfcn.h" HAVE_DLFCN_H)