diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-27 23:58:00 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-27 23:58:00 +0100 |
commit | 4eba86b5037150e314cca932066acdde3cbfe090 (patch) | |
tree | c3d3b915bc1a93e4318b2f61590df2276ce592a9 /libs/surfaces | |
parent | 8710a2d9432469909eb51d0644f2f25133240dbb (diff) |
Fix libwebsockets compat
LWS_CALLBACK_HTTP_CONFIRM_UPGRADE is only available since v3.1.0
Diffstat (limited to 'libs/surfaces')
-rw-r--r-- | libs/surfaces/websockets/server.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/surfaces/websockets/server.cc b/libs/surfaces/websockets/server.cc index 9db695d7ee..b040f806d6 100644 --- a/libs/surfaces/websockets/server.cc +++ b/libs/surfaces/websockets/server.cc @@ -415,8 +415,10 @@ WebsocketsServer::lws_callback (struct lws* wsi, enum lws_callback_reasons reaso #if LWS_LIBRARY_VERSION_MAJOR >= 3 case LWS_CALLBACK_HTTP_BIND_PROTOCOL: case LWS_CALLBACK_ADD_HEADERS: +#if LWS_LIBRARY_VERSION_MINOR >= 1 case LWS_CALLBACK_HTTP_CONFIRM_UPGRADE: #endif +#endif break; /* TODO: handle HTTP connections. |