diff options
author | roam <roam@FreeBSD.org> | 2009-01-26 10:11:01 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2009-01-26 10:11:01 +0800 |
commit | 5d2bebe4628aef2244e410c09a1699a4f756a8a9 (patch) | |
tree | 655bf946652b1ea4f24b1beb1f705ea984e8f9d9 /ftp/curl/files | |
parent | 17410b28d1c4e10da9a84937ba0489457cea3e99 (diff) | |
download | freebsd-ports-gnome-5d2bebe4628aef2244e410c09a1699a4f756a8a9.tar.gz freebsd-ports-gnome-5d2bebe4628aef2244e410c09a1699a4f756a8a9.tar.zst freebsd-ports-gnome-5d2bebe4628aef2244e410c09a1699a4f756a8a9.zip |
Apply a band-aid to fix the build without proxy support.
Note that some of the tests shall fail for the present.
Diffstat (limited to 'ftp/curl/files')
-rw-r--r-- | ftp/curl/files/patch-lib::ftp.c | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ftp/curl/files/patch-lib::ftp.c b/ftp/curl/files/patch-lib::ftp.c new file mode 100644 index 000000000000..d2a0b8e3f965 --- /dev/null +++ b/ftp/curl/files/patch-lib::ftp.c @@ -0,0 +1,47 @@ +--- ../../../tags/curl-7.19.2-stock/lib/ftp.c 2009-01-23 18:11:47.000000000 +0200 ++++ lib/ftp.c 2009-01-26 03:31:07.000000000 +0200 +@@ -1901,7 +1901,7 @@ + result = CURLE_COULDNT_CONNECT; + break; + } +-#ifndef CURL_DISABLE_HTTP ++#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY) + if(conn->bits.tunnel_proxy && conn->bits.httpproxy) { + /* FIX: this MUST wait for a proper connect first if 'connected' is + * FALSE */ +@@ -1927,7 +1927,7 @@ + if(CURLE_OK != result) + return result; + } +-#endif /* CURL_DISABLE_HTTP */ ++#endif /* CURL_DISABLE_HTTP || CURL_DISABLE_PROXY */ + + state(conn, FTP_STOP); /* this phase is completed */ + +@@ -3056,7 +3056,7 @@ + bool *done) /* see description above */ + { + CURLcode result; +-#ifndef CURL_DISABLE_HTTP ++#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY) + /* for FTP over HTTP proxy */ + struct HTTP http_proxy; + struct FTP *ftp_save; +@@ -3079,7 +3079,7 @@ + + ftpc->response_time = RESP_TIMEOUT; /* set default response time-out */ + +-#ifndef CURL_DISABLE_HTTP ++#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_PROXY) + if(conn->bits.tunnel_proxy && conn->bits.httpproxy) { + /* BLOCKING */ + /* We want "seamless" FTP operations through HTTP proxy tunnel */ +@@ -3102,7 +3102,7 @@ + if(CURLE_OK != result) + return result; + } +-#endif /* CURL_DISABLE_HTTP */ ++#endif /* CURL_DISABLE_HTTP || CURL_DISABLE_PROXY */ + + if(conn->protocol & PROT_FTPS) { + /* BLOCKING */ |