diff --git a/http.c b/http.c index 513b3b2..75b0a1a 100644 --- a/http.c +++ b/http.c @@ -813,6 +813,7 @@ set_curlopt(CURL* handle, const http_curlopt *opt) err = curl_easy_setopt(handle, opt->curlopt, value_long); elog(DEBUG2, "pgsql-http: set '%s' to value '%ld', return value = %d", opt->curlopt_str, value_long, err); } +#if LIBCURL_VERSION_NUM >= 0x074700 /* 7.71.0 */ /* Only used for CURLOPT_SSLKEY_BLOB and CURLOPT_SSLCERT_BLOB */ else if (opt->curlopt_type == CURLOPT_BLOB) { @@ -827,6 +828,7 @@ set_curlopt(CURL* handle, const http_curlopt *opt) err = curl_easy_setopt(handle, opt->curlopt, &blob); elog(DEBUG2, "pgsql-http: set '%s' to value '%s', return value = %d", opt->curlopt_str, opt->curlopt_val, err); } +#endif else { /* Never get here */