Skip to content
代码片段 群组 项目
提交 ac387815 编辑于 作者: Andy Green's avatar Andy Green
浏览文件

test-apps: dont build extension support if LWS_WITHOUT_EXTENSIONS

上级 b17243bb
No related branches found
No related tags found
无相关合并请求
......@@ -510,7 +510,7 @@ static const struct lws_protocols protocols[] = {
{ NULL, NULL, 0, 0 } /* end */
};
#if defined(LWS_ROLE_WS)
#if defined(LWS_ROLE_WS) && !defined(LWS_WITHOUT_EXTENSIONS)
static const struct lws_extension exts[] = {
{
"permessage-deflate",
......@@ -704,7 +704,7 @@ int main(int argc, char **argv)
info.protocols = protocols;
info.gid = -1;
info.uid = -1;
#if defined(LWS_ROLE_WS)
#if defined(LWS_ROLE_WS) && !defined(LWS_WITHOUT_EXTENSIONS)
info.extensions = exts;
#endif
......
......@@ -206,7 +206,7 @@ void sighandler(int sig)
lws_cancel_service(context);
}
#if defined(LWS_ROLE_WS)
#if defined(LWS_ROLE_WS) && !defined(LWS_WITHOUT_EXTENSIONS)
static const struct lws_extension exts[] = {
{
"permessage-deflate",
......@@ -536,7 +536,7 @@ int main(int argc, char **argv)
info.gid = gid;
info.uid = uid;
info.options = opts | LWS_SERVER_OPTION_VALIDATE_UTF8 | LWS_SERVER_OPTION_EXPLICIT_VHOSTS;
#if defined(LWS_ROLE_WS)
#if defined(LWS_ROLE_WS) && !defined(LWS_WITHOUT_EXTENSIONS)
info.extensions = exts;
#endif
info.timeout_secs = 5;
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册