From f9a798c9fb26124206ae2a3e72225f6d9dd8c646 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 23 Feb 2024 13:21:08 +0100 Subject: [PATCH] Problem: cmake search for kqueue missing headers Solution: include sys/types.h and sys/time.h as documented by kqueue and used in autotools fixes kqueue detection on openbsd --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f956f3fd93..814d5d4606 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -380,7 +380,7 @@ endif(WIN32) if(NOT MSVC) if(POLLER STREQUAL "") - check_cxx_symbol_exists(kqueue sys/event.h HAVE_KQUEUE) + check_cxx_symbol_exists(kqueue "sys/types.h;sys/event.h;sys/time.h" HAVE_KQUEUE) if(HAVE_KQUEUE) set(POLLER "kqueue") endif()