aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-websock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/afb-websock.c')
-rw-r--r--src/afb-websock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/afb-websock.c b/src/afb-websock.c
index 73bb3c5e..9e121c10 100644
--- a/src/afb-websock.c
+++ b/src/afb-websock.c
@@ -15,6 +15,8 @@
* limitations under the License.
*/
+#if WITH_LIBMICROHTTPD
+
#define _GNU_SOURCE
#include <stdlib.h>
@@ -255,3 +257,4 @@ int afb_websock_check_upgrade(struct afb_hreq *hreq, struct afb_apiset *apiset)
return rc;
}
+#endif