mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
web: fix invalid preprocessor define
This commit is contained in:
parent
123d822c48
commit
4a6c7db9ee
2 changed files with 4 additions and 4 deletions
|
@ -58,14 +58,14 @@ lws_callback_function websocket_protocol_cb;
|
|||
.rx_buffer_size = 0
|
||||
},
|
||||
#endif /* WITH_API */
|
||||
#ifdef LIBWEBSOCKETS_FOUND
|
||||
#ifdef Libwebsockets_FOUND
|
||||
{
|
||||
.name = "live",
|
||||
.callback = websocket_protocol_cb,
|
||||
.per_session_data_size = sizeof(struct websocket_connection),
|
||||
.rx_buffer_size = 0
|
||||
},
|
||||
#endif /* LIBWEBSOCKETS_FOUND */
|
||||
#endif /* Libwebsockets_FOUND */
|
||||
#if 0 /* not supported yet */
|
||||
{
|
||||
.name = "log",
|
||||
|
|
|
@ -355,13 +355,13 @@ check: if (optarg == endptr)
|
|||
if (!node)
|
||||
error("Node %s does not exist!", nodestr);
|
||||
|
||||
#ifdef LIBWEBSOCKETS_FOUND
|
||||
#ifdef Libwebsockets_FOUND
|
||||
/* Only start web subsystem if villas-pipe is used with a websocket node */
|
||||
if (node->_vt->start == websocket_start) {
|
||||
web_start(&sn.web);
|
||||
api_start(&sn.api);
|
||||
}
|
||||
#endif /* LIBWEBSOCKETS_FOUND */
|
||||
#endif /* Libwebsockets_FOUND */
|
||||
|
||||
if (reverse)
|
||||
node_reverse(node);
|
||||
|
|
Loading…
Add table
Reference in a new issue