File tree 4 files changed +13
-1
lines changed
Sources/FoundationNetworking 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -411,6 +411,10 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
411
411
if ((NS_CURL_ASSUME_FEATURES_MISSING) OR (CURL_VERSION_STRING VERSION_LESS "7.30.0" ))
412
412
add_compile_definitions ($<$<COMPILE_LANGUAGE:C>:NS_CURL_MISSING_MAX_HOST_CONNECTIONS>)
413
413
endif ()
414
+
415
+ if ((NS_CURL_ASSUME_FEATURES_MISSING) OR (CURL_VERSION_STRING VERSION_LESS "7.84.0" ))
416
+ add_compile_definitions ($<$<COMPILE_LANGUAGE:C>:NS_CURL_MISSING_CURLINFO_CAINFO>)
417
+ endif ()
414
418
endif ()
415
419
416
420
add_framework(CFURLSessionInterface
Original file line number Diff line number Diff line change @@ -586,7 +586,9 @@ CFURLSessionInfo const CFURLSessionInfoFTP_ENTRY_PATH = { CURLINFO_FTP_ENTRY_PAT
586
586
CFURLSessionInfo const CFURLSessionInfoREDIRECT_URL = { CURLINFO_REDIRECT_URL };
587
587
CFURLSessionInfo const CFURLSessionInfoPRIMARY_IP = { CURLINFO_PRIMARY_IP };
588
588
CFURLSessionInfo const CFURLSessionInfoAPPCONNECT_TIME = { CURLINFO_APPCONNECT_TIME };
589
+ #if !NS_CURL_MISSING_CURLINFO_CAINFO
589
590
CFURLSessionInfo const CFURLSessionInfoCAINFO = { CURLINFO_CAINFO };
591
+ #endif
590
592
CFURLSessionInfo const CFURLSessionInfoCERTINFO = { CURLINFO_CERTINFO };
591
593
CFURLSessionInfo const CFURLSessionInfoCONDITION_UNMET = { CURLINFO_CONDITION_UNMET };
592
594
CFURLSessionInfo const CFURLSessionInfoRTSP_SESSION_ID = { CURLINFO_RTSP_SESSION_ID };
Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
15
15
if ((NS_CURL_ASSUME_FEATURES_MISSING) OR (CURL_VERSION_STRING VERSION_LESS "7.30.0" ))
16
16
add_compile_definitions (NS_CURL_MISSING_MAX_HOST_CONNECTIONS)
17
17
endif ()
18
+
19
+ if ((NS_CURL_ASSUME_FEATURES_MISSING) OR (CURL_VERSION_STRING VERSION_LESS "7.84.0" ))
20
+ add_compile_definitions (NS_CURL_MISSING_CURLINFO_CAINFO)
21
+ endif ()
18
22
endif ()
19
23
20
24
add_library (FoundationNetworking
Original file line number Diff line number Diff line change @@ -209,6 +209,7 @@ extension _EasyHandle {
209
209
}
210
210
#endif
211
211
212
+ #if !NS_CURL_MISSING_CURLINFO_CAINFO
212
213
#if !os(Windows) && !os(macOS) && !os(iOS) && !os(watchOS) && !os(tvOS)
213
214
// Check if there is a default path; if there is, it will already
214
215
// be set, so leave things alone
@@ -240,7 +241,8 @@ extension _EasyHandle {
240
241
return
241
242
}
242
243
}
243
- #endif
244
+ #endif // !os(Windows) && !os(macOS) && !os(iOS) && !os(watchOS) && !os(tvOS)
245
+ #endif // !NS_CURL_MISSING_CURLINFO_CAINFO
244
246
}
245
247
246
248
/// Set allowed protocols
You can’t perform that action at this time.
0 commit comments