Skip to content

Commit

Permalink
Problem: cmake search for kqueue missing headers
Browse files Browse the repository at this point in the history
Solution: include sys/types.h and sys/time.h as documented by kqueue
and used in autotools

fixes kqueue detection on openbsd
  • Loading branch information
minrk authored and bluca committed Feb 23, 2024
1 parent 3b26401 commit ff231d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ff231d2

Please sign in to comment.