File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ $(package)_patches = remove_libstd_link.patch
8
8
$(package)_patches += macos_mktemp_check.patch
9
9
$(package)_patches += builtin_sha1.patch
10
10
$(package)_patches += fix_have_windows.patch
11
+ $(package)_patches += openbsd_kqueue_headers.patch
11
12
$(package)_patches += cmake_minimum.patch
12
13
$(package)_patches += no_librt.patch
13
14
@@ -25,6 +26,7 @@ define $(package)_preprocess_cmds
25
26
patch -p1 < $($(package ) _patch_dir) /macos_mktemp_check.patch && \
26
27
patch -p1 < $($(package ) _patch_dir) /builtin_sha1.patch && \
27
28
patch -p1 < $($(package ) _patch_dir) /fix_have_windows.patch && \
29
+ patch -p1 < $($(package ) _patch_dir) /openbsd_kqueue_headers.patch && \
28
30
patch -p1 < $($(package ) _patch_dir) /cmake_minimum.patch && \
29
31
patch -p1 < $($(package ) _patch_dir) /no_librt.patch
30
32
endef
Original file line number Diff line number Diff line change
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()
You can’t perform that action at this time.
0 commit comments