$OpenBSD: patch-CMakeLists_txt,v 1.2 2021/11/14 22:45:25 sthen Exp $

Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -264,7 +264,7 @@ if(ENABLE_GNUTLS)
 endif()
 
 # Check for PAM library
-if(UNIX AND NOT APPLE)
+if(UNIX AND NOT APPLE AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
   check_include_files(security/pam_appl.h HAVE_PAM_H)
   set(CMAKE_REQUIRED_LIBRARIES -lpam)
   check_function_exists(pam_start HAVE_PAM_START)
