1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

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 <jaco@iewc.co.za>
This commit is contained in:
Jaco Kroon 2020-01-06 11:52:54 +02:00 committed by Andy Green
parent b57c520495
commit 0cf41c06ac

View file

@ -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;