summaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2009-01-24 13:20:24 +0000
committerPeter Pentchev <roam@FreeBSD.org>2009-01-24 13:20:24 +0000
commit7aa951c452c69edd2ab6add6fbf2678ff5d1097d (patch)
tree4f20ca19dea932eebba074cbce9587c13f4e799a /astro
parentUpdate to 0.06 (diff)
Fix the build with the new curl version - the CURLOPT_USERAGENT option
needs a single string passed in now.
Notes
Notes: svn path=/head/; revision=226790
Diffstat (limited to 'astro')
-rw-r--r--astro/gaia/files/patch-lib-wwfetch-wwfetch_http.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/astro/gaia/files/patch-lib-wwfetch-wwfetch_http.c b/astro/gaia/files/patch-lib-wwfetch-wwfetch_http.c
new file mode 100644
index 000000000000..13d5bacfb5f3
--- /dev/null
+++ b/astro/gaia/files/patch-lib-wwfetch-wwfetch_http.c
@@ -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)