Skip to content

Commit ff231d2

Browse files
minrkbluca
authored andcommitted
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
1 parent 3b26401 commit ff231d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ endif(WIN32)
380380

381381
if(NOT MSVC)
382382
if(POLLER STREQUAL "")
383-
check_cxx_symbol_exists(kqueue sys/event.h HAVE_KQUEUE)
383+
check_cxx_symbol_exists(kqueue "sys/types.h;sys/event.h;sys/time.h" HAVE_KQUEUE)
384384
if(HAVE_KQUEUE)
385385
set(POLLER "kqueue")
386386
endif()

0 commit comments

Comments
 (0)