From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-74.mimecast.com (us-smtp-delivery-74.mimecast.com [216.205.24.74]) by sourceware.org (Postfix) with ESMTP id ECD3B385E009 for ; Thu, 26 Mar 2020 15:24:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org ECD3B385E009 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-387-fv0TemwQPsKQNj1MNPCfDw-1; Thu, 26 Mar 2020 11:24:30 -0400 X-MC-Unique: fv0TemwQPsKQNj1MNPCfDw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6195C1005516 for ; Thu, 26 Mar 2020 15:24:29 +0000 (UTC) Received: from redhat.com (ovpn-112-40.phx2.redhat.com [10.3.112.40]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 44DE25E000; Thu, 26 Mar 2020 15:24:29 +0000 (UTC) Received: from fche by redhat.com with local (Exim 4.92.3) (envelope-from ) id 1jHUMt-0003fs-TK; Thu, 26 Mar 2020 11:24:28 -0400 Date: Thu, 26 Mar 2020 11:24:27 -0400 From: "Frank Ch. Eigler" To: "Frank Ch. Eigler" Cc: elfutils-devel@sourceware.org Subject: Re: PR25548 followup Message-ID: <20200326152427.GA14123@redhat.com> References: <20200326151528.GC13051@redhat.com> MIME-Version: 1.0 In-Reply-To: <20200326151528.GC13051@redhat.com> User-Agent: Mutt/1.12.0 (2019-05-25) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Status: No, score=-30.8 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Mar 2020 15:24:33 -0000 Hi - Ah but that would be too easy. Author: Frank Ch. Eigler Date: Thu Mar 26 11:12:49 2020 -0400 PR25548: CURLOPT_PATH_AS_IS backward compatibility =20 old libcurl lacks the CURL_AT_LEAST_VERSION macro, so use LIBCURL_VERSION_NUM testing instead. =20 Signed-off-by: Frank Ch. Eigler diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.= c index f1b63160a5f2..b0d5cb028508 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 >=3D 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