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:
parent
11a5369034
commit
6f37b17953
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue