$OpenBSD: patch-winpr_libwinpr_synch_CMakeLists_txt,v 1.5 2021/07/29 12:38:20 sthen Exp $

Index: winpr/libwinpr/synch/CMakeLists.txt
--- winpr/libwinpr/synch/CMakeLists.txt.orig
+++ winpr/libwinpr/synch/CMakeLists.txt
@@ -30,9 +30,13 @@ winpr_module_add(
 	timer.c
 	wait.c)
 
-if(FREEBSD)
+if(EPOLLSHIM)
 	winpr_include_directory_add(${EPOLLSHIM_INCLUDE_DIR})
 	winpr_library_add_private(${EPOLLSHIM_LIBS})
+endif()
+
+if(EXECINFO_LIBS)
+	winpr_library_add_private(${EXECINFO_LIBS})
 endif()
 
 if(BUILD_TESTING)
