1
0
Fork 0
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:
Sonja Happ 2019-01-31 10:39:08 +01:00
parent 1b0dcbbd2c
commit 263f0c550a
2 changed files with 4 additions and 0 deletions

View file

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

View file

@ -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
}