From 8f9ad9413b2c5b354c80749ac80e7167320d7c1d Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Thu, 10 Mar 2022 09:43:48 -0500 Subject: Fix compile regression for libcurl < 7.64.1 The CURLSSLBACKEND_SECURETRANSPORT symbol was introduced in 7.64.1, so we need to use the legacy name CURLSSLBACKEND_DARWINSSL before that. Fixes #742. --- src/module.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/module.c b/src/module.c index a256166..a81391f 100644 --- a/src/module.c +++ b/src/module.c @@ -376,7 +376,11 @@ initpycurl(void) case CURLSSLBACKEND_NSS: case CURLSSLBACKEND_WOLFSSL: case CURLSSLBACKEND_MBEDTLS: +#if LIBCURL_VERSION_NUM >= MAKE_LIBCURL_VERSION(7, 64, 1) case CURLSSLBACKEND_SECURETRANSPORT: +#else + case CURLSSLBACKEND_DARWINSSL: +#endif runtime_supported_backend_found = 1; break; default: -- cgit v1.2.1