aboutsummaryrefslogtreecommitdiff
path: root/lib/core-net
diff options
context:
space:
mode:
authorAndy Green <andy@warmcat.com>2021-09-27 06:29:34 +0100
committerAndy Green <andy@warmcat.com>2021-10-05 07:40:17 +0100
commitee15b82b6e8d2ba038dec7e2c51585a70fdd746c (patch)
treebe879b69e058631a4c2c44d770b682c4d626be62 /lib/core-net
parent71b8f4dc686aed28f1f88ef5ba59208e3366d75c (diff)
downloadlibwebsockets-ee15b82b6e8d2ba038dec7e2c51585a70fdd746c.tar.gz
cmake: unbreak LWS_WITH_SYS_STATE disabled build
Diffstat (limited to 'lib/core-net')
-rw-r--r--lib/core-net/route.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/core-net/route.c b/lib/core-net/route.c
index 9fdbb780..91744372 100644
--- a/lib/core-net/route.c
+++ b/lib/core-net/route.c
@@ -341,8 +341,12 @@ _lws_route_pt_close_unroutable(struct lws_context_per_thread *pt)
struct lws *wsi;
unsigned int n;
- if (!pt->context->nl_initial_done ||
- pt->context->mgr_system.state < LWS_SYSTATE_IFACE_COLDPLUG)
+ if (!pt->context->nl_initial_done
+#if defined(LWS_WITH_SYS_STATE)
+ ||
+ pt->context->mgr_system.state < LWS_SYSTATE_IFACE_COLDPLUG
+#endif
+ )
return 0;
lwsl_cx_debug(pt->context, "in");