]> git.pld-linux.org Git - packages/perl-WWW-Curl.git/blame - WWW-Curl-Work-around-a-macro-bug-in-curl-7.87.0.patch
- added curl-7.87.0 patches from Fedora
[packages/perl-WWW-Curl.git] / WWW-Curl-Work-around-a-macro-bug-in-curl-7.87.0.patch
CommitLineData
0b0a7787
JB
1From 426744bbcbe0842f6d8c0cee08b03179b191738e Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
3Date: Fri, 20 Jan 2023 16:35:11 +0100
4Subject: [PATCH] Work around a macro bug in curl-7.87.0
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Compiling against curl-7.87.0 failed with:
10
11 In file included from /usr/include/curl/curl.h:3195:
12 Curl.xs:688:25: error: void value not ignored as it ought to be
13 688 | curl_easy_setopt(clone->curl, 10000 +
14 i, clone->strings[i]);
15 | ^
16
17This was a bug in curl-7.87.0. It will be fixed in next curl release. This
18patch provides a workaround on WWW-Curl side.
19
20<https://github.com/curl/curl/pull/10149>
21CPAN RT#145992
22
23Signed-off-by: Petr Písař <ppisar@redhat.com>
24---
25 Curl.xs | 2 +-
26 1 file changed, 1 insertion(+), 1 deletion(-)
27
28diff --git a/Curl.xs b/Curl.xs
29index a4f3afb..87180a9 100644
30--- a/Curl.xs
31+++ b/Curl.xs
32@@ -685,7 +685,7 @@ curl_easy_duphandle(self)
33 for (i=0;i<=self->strings_index;i++) {
34 if (self->strings[i] != NULL) {
35 clone->strings[i] = savepv(self->strings[i]);
36- curl_easy_setopt(clone->curl, 10000 + i, clone->strings[i]);
37+ curl_easy_setopt(clone->curl, (10000 + i), clone->strings[i]);
38 }
39 }
40 clone->strings_index = self->strings_index;
41--
422.39.1
43
This page took 0.104016 seconds and 4 git commands to generate.