freerdp: re-enable check for poll by default on Apple

This commit is contained in:
Richard Markiewicz 2021-12-14 11:56:51 -08:00 committed by akallabeth
parent d4020e2328
commit 0577d7a0c3
1 changed files with 2 additions and 1 deletions

View File

@ -564,7 +564,8 @@ if(UNIX OR CYGWIN)
if (FREEBSD)
list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES ${EPOLLSHIM_INCLUDE_DIR})
endif()
if(NOT APPLE)
option(WITH_POLL "Check for and include poll.h" ON)
if (WITH_POLL)
check_include_files(poll.h HAVE_POLL_H)
endif()
list(APPEND CMAKE_REQUIRED_LIBRARIES m)