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