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
88$(package)_patches += macos_mktemp_check.patch
99$(package)_patches += builtin_sha1.patch
1010$(package)_patches += fix_have_windows.patch
11+ $(package)_patches += openbsd_kqueue_headers.patch
1112$(package)_patches += cmake_minimum.patch
1213$(package)_patches += no_librt.patch
1314
@@ -25,6 +26,7 @@ define $(package)_preprocess_cmds
2526 patch -p1 < $($(package ) _patch_dir) /macos_mktemp_check.patch && \
2627 patch -p1 < $($(package ) _patch_dir) /builtin_sha1.patch && \
2728 patch -p1 < $($(package ) _patch_dir) /fix_have_windows.patch && \
29+ patch -p1 < $($(package ) _patch_dir) /openbsd_kqueue_headers.patch && \
2830 patch -p1 < $($(package ) _patch_dir) /cmake_minimum.patch && \
2931 patch -p1 < $($(package ) _patch_dir) /no_librt.patch
3032endef
Original file line number Diff line number Diff line change 1+ commit ff231d267370493814f933d151441866bf1e200b
2+ Author: Min RK <
[email protected] >
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