Skip to content

Commit

Permalink
CMake: fix devpoll detection not working properly
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Lachnit <stephanlachnit@debian.org>
  • Loading branch information
stephanlachnit committed Mar 3, 2023
1 parent 8c72509 commit 6fc2a61
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 6fc2a61

Please sign in to comment.