1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fix ifdefs for compilation without libwebsockets

This commit is contained in:
Steffen Vogel 2019-04-05 10:56:57 +02:00
parent 11a5369034
commit 6f37b17953

View file

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