From: Dan Fandrich Date: Sat, 11 Mar 2017 17:01:54 +0000 (+0100) Subject: url: don't compile detect_proxy if HTTP support is disabled X-Git-Tag: curl-7_54_0~141 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=381aff03857544b05c34f3f095089cd170023978;p=curl url: don't compile detect_proxy if HTTP support is disabled --- diff --git a/lib/url.c b/lib/url.c index 5943896eb..f9c324269 100644 --- a/lib/url.c +++ b/lib/url.c @@ -4893,6 +4893,7 @@ static bool check_noproxy(const char *name, const char *no_proxy) return FALSE; } +#ifndef CURL_DISABLE_HTTP /**************************************************************** * Detect what (if any) proxy to use. Remember that this selects a host * name and is not limited to HTTP proxies only. @@ -4962,6 +4963,7 @@ static char *detect_proxy(struct connectdata *conn) return proxy; } +#endif /* CURL_DISABLE_HTTP */ /* * If this is supposed to use a proxy, we need to figure out the proxy