]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: avoid poll() on macOS
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 Aug 2021 14:39:33 +0000 (16:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 24 Aug 2021 15:44:29 +0000 (17:44 +0200)
... like we do in configure builds. Since poll() on macOS is not
reliable enough.

Reported-by: marc-groundctl
Fixes #7595
Closes #7619

CMake/OtherTests.cmake

index 7f369938f91f21af6068efc7540ad4a85c37d60c..5cddf4afa9b04540ceec0652a3f80094c9e76db4 100644 (file)
@@ -237,6 +237,9 @@ endif()
 unset(CMAKE_TRY_COMPILE_TARGET_TYPE)
 
 if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
+  if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
+  # only try this on non-macOS
+
   # if not cross-compilation...
   include(CheckCSourceRuns)
   set(CMAKE_REQUIRED_FLAGS "")
@@ -279,5 +282,6 @@ if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
         }
         return 0;
     }" HAVE_POLL_FINE)
+  endif()
 endif()