0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 06:41:03 +08:00

CMake: fix devpoll detection not working properly

Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
This commit is contained in:
Stephan Lachnit 2023-03-03 11:01:47 +01:00
parent 8c725093ac
commit 6fc2a61d16
No known key found for this signature in database
GPG Key ID: B35B49EA5D563EFE

View File

@ -402,9 +402,7 @@ if(NOT MSVC)
endif()
if(POLLER STREQUAL "")
set(CMAKE_EXTRA_INCLUDE_FILES sys/devpoll.h)
check_type_size("struct pollfd" DEVPOLL)
set(CMAKE_EXTRA_INCLUDE_FILES)
check_include_files("sys/devpoll.h" HAVE_DEVPOLL)
if(HAVE_DEVPOLL)
set(POLLER "devpoll")
endif()