diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-09 08:23:55 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-09 08:23:55 +0000 |
commit | 90037b85d1a6c46979729d0735eef094516dc31f (patch) | |
tree | c47c68d433b7c8af0f6ad63e2979ccfd6354539c /lib/ftp.c | |
parent | 6ec145d4b451d51310f887ef01bb40b48004d131 (diff) |
Alexander Krasnostavsky's fix to make libcurl build fine with configure
--disable-http, which thus builds a libcurl without HTTP support.
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -491,6 +491,7 @@ CURLcode Curl_ftp_connect(struct connectdata *conn) ftp->passwd = conn->passwd; ftp->response_time = 3600; /* set default response time-out */ +#ifndef CURL_DISABLE_HTTP if (conn->bits.tunnel_proxy) { /* We want "seamless" FTP operations through HTTP proxy tunnel */ result = Curl_ConnectHTTPProxyTunnel(conn, FIRSTSOCKET, @@ -498,6 +499,7 @@ CURLcode Curl_ftp_connect(struct connectdata *conn) if(CURLE_OK != result) return result; } +#endif /* CURL_DISABLE_HTTP */ if(conn->protocol & PROT_FTPS) { /* FTPS is simply ftp with SSL for the control channel */ @@ -1711,6 +1713,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn, /* this just dumps information about this second connection */ ftp_pasv_verbose(conn, conninfo, newhostp, connectport); +#ifndef CURL_DISABLE_HTTP if(conn->bits.tunnel_proxy) { /* We want "seamless" FTP operations through HTTP proxy tunnel */ result = Curl_ConnectHTTPProxyTunnel(conn, SECONDARYSOCKET, @@ -1718,6 +1721,7 @@ CURLcode ftp_use_pasv(struct connectdata *conn, if(CURLE_OK != result) return result; } +#endif /* CURL_DISABLE_HTTP */ return CURLE_OK; } |