summaryrefslogtreecommitdiff
path: root/archivers/libcomprex/patches/patch-ad
blob: 97cf136fba0ae3ad5c6b4218776c45fb6cc8ca89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ad,v 1.2 2011/07/21 14:31:52 joerg Exp $

--- modules/scheme/curl/curl.c.orig	2003-01-01 07:22:34.000000000 +0100
+++ modules/scheme/curl/curl.c	2006-11-12 05:16:12.000000000 +0100
@@ -23,7 +23,6 @@
 #include <libcomprex/internal.h>
 
 #include <curl/curl.h>
-#include <curl/types.h>
 #include <curl/easy.h>
 
 static CxStatus
@@ -51,7 +50,9 @@ schemeGet(const char *scheme, const char
 
 	curl_easy_setopt(curl, CURLOPT_URL, url);
 	curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1);
+#if LIBCURL_VERSION_NUM < 0x71000
 	curl_easy_setopt(curl, CURLOPT_MUTE, 1);
+#endif
 	curl_easy_setopt(curl, CURLOPT_FILE, fp);
 	
 	res = curl_easy_perform(curl);