mirror of
https://github.com/openharmony/third_party_elfutils.git
synced 2026-07-20 23:45:11 -04:00
PR25548: CURLOPT_PATH_AS_IS backward compatibility
old libcurl lacks the CURL_AT_LEAST_VERSION macro, so use LIBCURL_VERSION_NUM testing instead. Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
This commit is contained in:
@@ -716,7 +716,7 @@ debuginfod_query_server (debuginfod_client *c,
|
||||
curl_easy_setopt(data[i].handle, CURLOPT_FOLLOWLOCATION, (long) 1);
|
||||
curl_easy_setopt(data[i].handle, CURLOPT_FAILONERROR, (long) 1);
|
||||
curl_easy_setopt(data[i].handle, CURLOPT_NOSIGNAL, (long) 1);
|
||||
#if CURL_AT_LEAST_VERSION(7,42,0)
|
||||
#if LIBCURL_VERSION_NUM >= 0x072a00 /* 7.42.0 */
|
||||
curl_easy_setopt(data[i].handle, CURLOPT_PATH_AS_IS, (long) 1);
|
||||
#else
|
||||
/* On old curl; no big deal, canonicalization here is almost the
|
||||
|
||||
Reference in New Issue
Block a user