Disable poll usage on macOS/iOS because it is unreliable

This commit is contained in:
Marc-André Moreau 2021-05-27 16:01:06 -04:00 committed by akallabeth
parent 73a931f941
commit a7ce6699e3
1 changed files with 3 additions and 1 deletions

View File

@ -638,7 +638,9 @@ if(UNIX OR CYGWIN)
if (FREEBSD)
list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES ${EPOLLSHIM_INCLUDE_DIR})
endif()
check_include_files(poll.h HAVE_POLL_H)
if(NOT APPLE)
check_include_files(poll.h HAVE_POLL_H)
endif()
list(APPEND CMAKE_REQUIRED_LIBRARIES m)
check_symbol_exists(ceill math.h HAVE_MATH_C99_LONG_DOUBLE)
list(REMOVE_ITEM CMAKE_REQUIRED_LIBRARIES m)