openbsd_kqueue_headers.patch raw
1 commit ff231d267370493814f933d151441866bf1e200b
2 Author: Min RK <benjaminrk@gmail.com>
3 Date: Fri Feb 23 13:21:08 2024 +0100
4
5 Problem: cmake search for kqueue missing headers
6
7 Solution: include sys/types.h and sys/time.h as documented by kqueue
8 and used in autotools
9
10 fixes kqueue detection on openbsd
11
12 diff --git a/CMakeLists.txt b/CMakeLists.txt
13 index f956f3fd..814d5d46 100644
14 --- a/CMakeLists.txt
15 +++ b/CMakeLists.txt
16 @@ -380,7 +380,7 @@ endif(WIN32)
17
18 if(NOT MSVC)
19 if(POLLER STREQUAL "")
20 - check_cxx_symbol_exists(kqueue sys/event.h HAVE_KQUEUE)
21 + check_cxx_symbol_exists(kqueue "sys/types.h;sys/event.h;sys/time.h" HAVE_KQUEUE)
22 if(HAVE_KQUEUE)
23 set(POLLER "kqueue")
24 endif()
25