mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
Fix the build with the new curl version - the CURLOPT_USERAGENT option
needs a single string passed in now.
This commit is contained in:
parent
527723bfdb
commit
7aa951c452
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=226790
11
astro/gaia/files/patch-lib-wwfetch-wwfetch_http.c
Normal file
11
astro/gaia/files/patch-lib-wwfetch-wwfetch_http.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- lib/wwfetch/wwfetch_http.c.old 2009-01-24 15:12:41.000000000 +0200
|
||||
+++ lib/wwfetch/wwfetch_http.c 2009-01-24 15:15:30.000000000 +0200
|
||||
@@ -96,7 +96,7 @@
|
||||
if ((handle->lastcurlerror = curl_easy_setopt(handle->curl, CURLOPT_HTTPHEADER, handle->curlheaders)) != CURLE_OK)
|
||||
return WWFETCH_CURL_ERROR;
|
||||
|
||||
- if ((handle->lastcurlerror = curl_easy_setopt(handle->curl, CURLOPT_USERAGENT, "gaia/%s", GAIA_VERSION)) != CURLE_OK)
|
||||
+ if ((handle->lastcurlerror = curl_easy_setopt(handle->curl, CURLOPT_USERAGENT, "gaia/" GAIA_VERSION)) != CURLE_OK)
|
||||
return WWFETCH_CURL_ERROR;
|
||||
|
||||
if ((handle->lastcurlerror = curl_easy_setopt(handle->curl, CURLOPT_URL, url)) != CURLE_OK)
|
Loading…
Reference in New Issue
Block a user