From 6fc2a61d164b03d0b6c489c4219f6a0ed993928e Mon Sep 17 00:00:00 2001 From: Stephan Lachnit Date: Fri, 3 Mar 2023 11:01:47 +0100 Subject: [PATCH] CMake: fix devpoll detection not working properly Signed-off-by: Stephan Lachnit --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 072a6507..db974a76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()