pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / by-name / cm / cmake / 005-remove-systemconfiguration-dep.diff
blob742b80c4f9d1e523aae0838578cf051e12998c2b
1 diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
2 index b766aee425..ad50e64ce6 100644
3 --- a/Utilities/cmcurl/CMakeLists.txt
4 +++ b/Utilities/cmcurl/CMakeLists.txt
5 @@ -466,13 +466,6 @@ if(ENABLE_IPV6 AND NOT WIN32)
7 if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT ENABLE_ARES)
8 set(use_core_foundation_and_core_services ON)
10 - find_library(SYSTEMCONFIGURATION_FRAMEWORK "SystemConfiguration")
11 - if(NOT SYSTEMCONFIGURATION_FRAMEWORK)
12 - message(FATAL_ERROR "SystemConfiguration framework not found")
13 - endif()
15 - list(APPEND CURL_LIBS "-framework SystemConfiguration")
16 endif()
17 endif()
18 if(ENABLE_IPV6)
19 diff --git a/Utilities/cmcurl/lib/curl_setup.h b/Utilities/cmcurl/lib/curl_setup.h
20 index f7ba7e92a5..e4663cbf36 100644
21 --- a/Utilities/cmcurl/lib/curl_setup.h
22 +++ b/Utilities/cmcurl/lib/curl_setup.h
23 @@ -316,12 +316,6 @@
24 * performing this task will result in a synthesized IPv6 address.
26 #if defined(__APPLE__) && !defined(USE_ARES)
27 -#include <TargetConditionals.h>
28 -#define USE_RESOLVE_ON_IPS 1
29 -# if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) && \
30 - defined(USE_IPV6)
31 -# define CURL_MACOS_CALL_COPYPROXIES 1
32 -# endif
33 #endif
35 #ifdef USE_LWIPSOCK