]>
Commit | Line | Data |
---|---|---|
0b0a7787 JB |
1 | From 426744bbcbe0842f6d8c0cee08b03179b191738e Mon Sep 17 00:00:00 2001 |
2 | From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com> | |
3 | Date: Fri, 20 Jan 2023 16:35:11 +0100 | |
4 | Subject: [PATCH] Work around a macro bug in curl-7.87.0 | |
5 | MIME-Version: 1.0 | |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
8 | ||
9 | Compiling 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 | ||
17 | This was a bug in curl-7.87.0. It will be fixed in next curl release. This | |
18 | patch provides a workaround on WWW-Curl side. | |
19 | ||
20 | <https://github.com/curl/curl/pull/10149> | |
21 | CPAN RT#145992 | |
22 | ||
23 | Signed-off-by: Petr Písař <ppisar@redhat.com> | |
24 | --- | |
25 | Curl.xs | 2 +- | |
26 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
27 | ||
28 | diff --git a/Curl.xs b/Curl.xs | |
29 | index 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 | -- | |
42 | 2.39.1 | |
43 |