summaryrefslogtreecommitdiff
path: root/net/nepenthes/files/patch-modules-download-curl-download-curl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'net/nepenthes/files/patch-modules-download-curl-download-curl.cpp')
-rw-r--r--net/nepenthes/files/patch-modules-download-curl-download-curl.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/nepenthes/files/patch-modules-download-curl-download-curl.cpp b/net/nepenthes/files/patch-modules-download-curl-download-curl.cpp
new file mode 100644
index 000000000000..5e0c0a4d1969
--- /dev/null
+++ b/net/nepenthes/files/patch-modules-download-curl-download-curl.cpp
@@ -0,0 +1,12 @@
+--- modules/download-curl/download-curl.cpp.orig Tue Dec 5 15:53:24 2006
++++ modules/download-curl/download-curl.cpp Tue Dec 5 15:54:09 2006
+@@ -230,7 +230,9 @@
+ down->getDownloadUrl()->getPort(),
+ down->getDownloadUrl()->getPath().c_str());
+ // string auth = down->getDownloadUrl()->getUser() + ":" + down->getDownloadUrl()->getPass();
++#if LIBCURL_VERSION_NUM < 0x071000
+ curl_easy_setopt(pCurlHandle, CURLOPT_SOURCE_USERPWD,(char *)down->getDownloadUrl()->getAuth().c_str());
++#endif
+ curl_easy_setopt(pCurlHandle, CURLOPT_USERPWD,(char *)down->getDownloadUrl()->getAuth().c_str());
+ curl_easy_setopt(pCurlHandle, CURLOPT_URL , url);
+ curl_easy_setopt(pCurlHandle, CURLOPT_FTP_RESPONSE_TIMEOUT, 120); // 2 min ftp timeout