Disable poll usage on macOS/iOS because it is unreliable
@@ -638,7 +638,9 @@ if(UNIX OR CYGWIN)
if (FREEBSD)
list(REMOVE_ITEM CMAKE_REQUIRED_INCLUDES ${EPOLLSHIM_INCLUDE_DIR})
endif()
+ 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)
