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() endif()
if(POLLER STREQUAL "") if(POLLER STREQUAL "")
set(CMAKE_EXTRA_INCLUDE_FILES sys/devpoll.h) check_include_files("sys/devpoll.h" HAVE_DEVPOLL)
check_type_size("struct pollfd" DEVPOLL)
set(CMAKE_EXTRA_INCLUDE_FILES)
if(HAVE_DEVPOLL) if(HAVE_DEVPOLL)
set(POLLER "devpoll") set(POLLER "devpoll")
endif() endif()