diff options
author | Scott Talbert <swt@techie.net> | 2022-03-10 09:43:48 -0500 |
---|---|---|
committer | Scott Talbert <swt@techie.net> | 2022-03-10 09:43:48 -0500 |
commit | 8f9ad9413b2c5b354c80749ac80e7167320d7c1d (patch) | |
tree | f4d5dcad96cb6218c37607c1a1d9cffb60755bce | |
parent | 385ca607106a6c11ed1ddca352685ec9b7744b3d (diff) | |
download | pycurl-8f9ad9413b2c5b354c80749ac80e7167320d7c1d.tar.gz |
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.
-rw-r--r-- | src/module.c | 4 |
1 files changed, 4 insertions, 0 deletions
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: |