From 263f0c550af86c59dfbeeb2cdebc15a75c602e15 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Thu, 31 Jan 2019 10:39:08 +0100 Subject: [PATCH] super_node: place WITH_WEB switch around wrapper for a libwebsocket method to avoid linker error if libvillas is compiled with WITH_WEB=OFF --- include/villas/super_node.h | 2 ++ lib/super_node.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/villas/super_node.h b/include/villas/super_node.h index 81ad888dc..7e4729ae3 100644 --- a/include/villas/super_node.h +++ b/include/villas/super_node.h @@ -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 diff --git a/lib/super_node.cpp b/lib/super_node.cpp index 246a0ae3a..213eb95c7 100644 --- a/lib/super_node.cpp +++ b/lib/super_node.cpp @@ -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 }