mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
test-apps: dont build extension support if LWS_WITHOUT_EXTENSIONS
This commit is contained in:
parent
b17243bb5d
commit
ac3878158a
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue