summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuciano Iam <lucianito@gmail.com>2020-02-26 23:16:01 +0100
committerRobin Gareus <robin@gareus.org>2020-02-27 03:42:54 +0100
commit0921cf89392b29e4d054dc1851c142972a7a7d64 (patch)
tree191209f296516849af4c2a0119a67c60ac0274bc
parentec8e0f8ee50de92c10d1d97c136f4f0dbd0a26e0 (diff)
Make previous commit 81ecc2b compatible with libwebsockets==2
-rw-r--r--libs/surfaces/websockets/server.cc2
1 files changed, 2 insertions, 0 deletions
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.