diff options
| author | Frank Ch. Eigler <fche@redhat.com> | 2020-03-26 11:12:49 -0400 |
|---|---|---|
| committer | Frank Ch. Eigler <fche@redhat.com> | 2020-03-26 11:21:23 -0400 |
| commit | dbd41ebdfec075373c0747406b665014d828732f (patch) | |
| tree | 71e5430d3c8d0fa676933b14c34b9376eed6ca8c /debuginfod | |
| parent | 610149d32081c44f13901cdd86ab951f5bfe7fe8 (diff) | |
| download | platform_external_elfutils-dbd41ebdfec075373c0747406b665014d828732f.tar.gz platform_external_elfutils-dbd41ebdfec075373c0747406b665014d828732f.tar.bz2 platform_external_elfutils-dbd41ebdfec075373c0747406b665014d828732f.zip | |
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>
Diffstat (limited to 'debuginfod')
| -rw-r--r-- | debuginfod/debuginfod-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c index f1b63160..b0d5cb02 100644 --- a/debuginfod/debuginfod-client.c +++ b/debuginfod/debuginfod-client.c @@ -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 |
