]> granicus.if.org Git - curl/commitdiff
url: don't compile detect_proxy if HTTP support is disabled
authorDan Fandrich <dan@coneharvesters.com>
Sat, 11 Mar 2017 17:01:54 +0000 (18:01 +0100)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 11 Mar 2017 17:02:34 +0000 (18:02 +0100)
lib/url.c

index 5943896eb149bb5145f6886af4b3945d2628fc62..f9c32426913db66cd0325e13e4ab46ea593abd31 100644 (file)
--- 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