]> granicus.if.org Git - curl/commitdiff
http-proxy: fix build with --disable-proxy or --disable-http
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Jun 2017 21:57:31 +0000 (23:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 15 Jun 2017 22:02:57 +0000 (00:02 +0200)
Reported-by: Dan Fandrich
lib/http_proxy.c
lib/http_proxy.h

index cd5e7c269c16705ed877698118911615d3555ed1..380eded2e920455aedbd8433b2ed4df51d0555de 100644 (file)
@@ -677,5 +677,10 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
   return result;
 }
 
+#else
+void Curl_connect_free(struct Curl_easy *data)
+{
+  (void)data;
+}
 
 #endif /* CURL_DISABLE_PROXY */
index bd9d6f59009763a3d531ef052a3492c12fb77b9a..2e50adc8ff50b287b4685c26e9ebc53bf9d85f98 100644 (file)
@@ -35,11 +35,14 @@ CURLcode Curl_proxy_connect(struct connectdata *conn, int sockindex);
 
 bool Curl_connect_complete(struct connectdata *conn);
 bool Curl_connect_ongoing(struct connectdata *conn);
-void Curl_connect_free(struct Curl_easy *data);
 
 #else
 #define Curl_proxyCONNECT(x,y,z,w) CURLE_NOT_BUILT_IN
 #define Curl_proxy_connect(x,y) CURLE_OK
+#define Curl_connect_complete(x) CURLE_OK
+#define Curl_connect_ongoing(x) FALSE
 #endif
 
+void Curl_connect_free(struct Curl_easy *data);
+
 #endif /* HEADER_CURL_HTTP_PROXY_H */