0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Merge pull request #4522 from stephanlachnit/p-cmake-fix-devpoll

CMake: fix devpoll detection not working properly
This commit is contained in:
Luca Boccassi 2023-03-05 17:49:19 +00:00 committed by GitHub
commit 94bf58e43c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()