blob: 304b3f8fa40a347abb7296a2a859a363f8e7c2a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
$NetBSD: patch-ah,v 1.1 2009/01/09 10:17:35 tron Exp $
Fix compilation with newer version of "curl", see here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1978210&group_id=129766&atid=715780
--- src/url.cc.orig 2008-03-01 22:48:36.000000000 +0000
+++ src/url.cc 2009-01-09 10:09:10.000000000 +0000
@@ -75,7 +75,7 @@
if (only_header)
{
- curl_easy_setopt(curl_handle, CURLOPT_NOBODY);
+ curl_easy_setopt(curl_handle, CURLOPT_NOBODY, 1);
curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, URL::dl);
curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA,
(void *)buffer.getPtr());
|