freebsd-ports/astro/gaia/files/patch-lib-wwfetch-wwfetch_http.c
Peter Pentchev 7aa951c452 Fix the build with the new curl version - the CURLOPT_USERAGENT option
needs a single string passed in now.
2009-01-24 13:20:24 +00:00

11 lines
668 B
C

--- 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)