mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
super_node: place WITH_WEB switch around wrapper for a libwebsocket method to avoid linker error if libvillas is compiled with WITH_WEB=OFF
This commit is contained in:
parent
1b0dcbbd2c
commit
263f0c550a
2 changed files with 4 additions and 0 deletions
|
@ -42,4 +42,6 @@ struct lws_vhost * web_get_vhost(struct web *w);
|
|||
|
||||
enum state web_get_state(struct web *w);
|
||||
|
||||
#ifdef WITH_WEB
|
||||
int web_callback_on_writable(struct web *w, struct lws *wsi);
|
||||
#endif
|
||||
|
|
|
@ -620,8 +620,10 @@ extern "C" {
|
|||
return ws->getState();
|
||||
}
|
||||
|
||||
#ifdef WITH_WEB
|
||||
int web_callback_on_writable(struct web *w, struct lws *wsi)
|
||||
{
|
||||
return lws_callback_on_writable(wsi);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue