From 0921cf89392b29e4d054dc1851c142972a7a7d64 Mon Sep 17 00:00:00 2001 From: Luciano Iam Date: Wed, 26 Feb 2020 23:16:01 +0100 Subject: [PATCH] Make previous commit 81ecc2b compatible with libwebsockets==2 --- libs/surfaces/websockets/server.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/surfaces/websockets/server.cc b/libs/surfaces/websockets/server.cc index e91acb717a..02fb98a91e 100644 --- a/libs/surfaces/websockets/server.cc +++ b/libs/surfaces/websockets/server.cc @@ -411,9 +411,11 @@ WebsocketsServer::lws_callback (struct lws* wsi, enum lws_callback_reasons reaso case LWS_CALLBACK_UNLOCK_POLL: case LWS_CALLBACK_WS_PEER_INITIATED_CLOSE: case LWS_CALLBACK_FILTER_HTTP_CONNECTION: +#if LWS_LIBRARY_VERSION_MAJOR >= 3 case LWS_CALLBACK_HTTP_BIND_PROTOCOL: case LWS_CALLBACK_ADD_HEADERS: case LWS_CALLBACK_HTTP_CONFIRM_UPGRADE: +#endif break; /* TODO: handle HTTP connections.