summaryrefslogtreecommitdiff
path: root/lib/socks.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-09-29 21:46:04 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-09-29 21:46:04 +0000
commitf3ab5d5500f81b052e215b60fe55dcf88fe6635f (patch)
treebe1cf923eeb5eca48d2e66404a0506ca92f874a2 /lib/socks.c
parent8f467b4288b69e0cd2355cdb8d4dd8356950e447 (diff)
downloadcurl-f3ab5d5500f81b052e215b60fe55dcf88fe6635f.tar.gz
- Daniel Egger provided a patch that allows you to disable proxy support in
libcurl to somewhat reduce the size of the binary. Run configure --disable-proxy.
Diffstat (limited to 'lib/socks.c')
-rw-r--r--lib/socks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/socks.c b/lib/socks.c
index 9bbb0a7f4..693573209 100644
--- a/lib/socks.c
+++ b/lib/socks.c
@@ -23,6 +23,7 @@
#include "setup.h"
+#ifndef CURL_DISABLE_PROXY
#include <string.h>
#ifdef NEED_MALLOC_H
@@ -686,3 +687,6 @@ CURLcode Curl_SOCKS5(const char *proxy_name,
Curl_nonblock(sock, TRUE);
return CURLE_OK; /* Proxy was successful! */
}
+
+#endif /* CURL_DISABLE_PROXY */
+