From 6f37b17953c29699f4c59ea415f4bcb728110b41 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 5 Apr 2019 10:56:57 +0200 Subject: [PATCH] fix ifdefs for compilation without libwebsockets --- src/villas-pipe.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/villas-pipe.cpp b/src/villas-pipe.cpp index eea2ff2db..bb69146ad 100644 --- a/src/villas-pipe.cpp +++ b/src/villas-pipe.cpp @@ -374,7 +374,7 @@ check: if (optarg == endptr) if (!node) throw RuntimeError("Node {} does not exist!", nodestr); -#ifdef LIBWEBSOCKETS_FOUND +#if defined(LIBWEBSOCKETS_FOUND) && defined(WITH_WEB) /* Only start web subsystem if villas-pipe is used with a websocket node */ if (node_type(node)->start == websocket_start) { Web *w = sn.getWeb(); @@ -383,7 +383,7 @@ check: if (optarg == endptr) w->start(); a->start(); } -#endif /* LIBWEBSOCKETS_FOUND */ +#endif /* defined(LIBWEBSOCKETS_FOUND) && defined(WITH_WEB) */ if (reverse) node_reverse(node);