lwsws: survive LWS_WITHOUT_EXTENSIONS

This commit is contained in:
Andy Green 2017-08-26 12:18:47 +08:00
parent a2943ca41d
commit 4ce725903d

View file

@ -58,11 +58,13 @@ static int pids[32];
#define LWSWS_CONFIG_STRING_SIZE (32 * 1024) #define LWSWS_CONFIG_STRING_SIZE (32 * 1024)
static const struct lws_extension exts[] = { static const struct lws_extension exts[] = {
#if !defined(LWS_NO_EXTENSIONS)
{ {
"permessage-deflate", "permessage-deflate",
lws_extension_callback_pm_deflate, lws_extension_callback_pm_deflate,
"permessage-deflate" "permessage-deflate"
}, },
#endif
{ NULL, NULL, NULL /* terminator */ } { NULL, NULL, NULL /* terminator */ }
}; };