From 0cf41c06ac085c698beb7f1e6efbd1be8758f27d Mon Sep 17 00:00:00 2001 From: Jaco Kroon Date: Mon, 6 Jan 2020 11:52:54 +0200 Subject: [PATCH] build options: fix SOCKS5 and WITHOUT_CLIENT If LWS is build with SOCKS5 support, but WITHOUT_CLIENT then a compile failure occurs which this fixes. Signed-off-by: Jaco Kroon --- lib/core-net/vhost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core-net/vhost.c b/lib/core-net/vhost.c index 69fe26a53..283b802e7 100644 --- a/lib/core-net/vhost.c +++ b/lib/core-net/vhost.c @@ -437,7 +437,7 @@ 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_WITHOUT_CLIENT) && defined(LWS_HAVE_GETENV) +#if (!defined(LWS_WITHOUT_CLIENT) || defined(LWS_WITH_SOCKS5)) && defined(LWS_HAVE_GETENV) char *p; #endif int n;