forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
depends: Fix
zeromq
build on OpenBSD
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
commit ff231d267370493814f933d151441866bf1e200b | ||
Author: Min RK <benjaminrk@gmail.com> | ||
Date: Fri Feb 23 13:21:08 2024 +0100 | ||
|
||
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 | ||
|
||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index f956f3fd..814d5d46 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() |