From 04ec3d6f73f4a125c14a25d25fd9b49b35c61dd4 Mon Sep 17 00:00:00 2001 From: Jaco Kroon Date: Mon, 6 Jan 2020 12:32:48 +0200 Subject: [PATCH] build options: fix SOCKS5 and WITHOUT_CLIENT Signed-off-by: Jaco Kroon --- lib/core-net/vhost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core-net/vhost.c b/lib/core-net/vhost.c index dc67ad958..898ca1982 100644 --- a/lib/core-net/vhost.c +++ b/lib/core-net/vhost.c @@ -450,8 +450,8 @@ lws_create_vhost(struct lws_context *context, struct lws_protocols *lwsp; int m, f = !info->pvo, fx = 0, abs_pcol_count = 0; char buf[96]; -#if defined(LWS_CLIENT_HTTP_PROXYING) && \ - defined(LWS_WITH_CLIENT) && defined(LWS_HAVE_GETENV) +#if ((defined(LWS_CLIENT_HTTP_PROXYING) && defined(LWS_WITH_CLIENT)) \ + || defined(LWS_WITH_SOCKS5)) && defined(LWS_HAVE_GETENV) char *p; #endif #if defined(LWS_WITH_SYS_ASYNC_DNS)