Fix LWS_NO_SERVER build.
"int n" was used also when server parts are not compiled, so don't put it inside the LWS_NO_SERVER ifdef.
This commit is contained in:
parent
fe2dae759d
commit
3baa08cac3
1 changed files with 1 additions and 1 deletions
|
@ -1626,8 +1626,8 @@ libwebsocket_create_context(struct lws_context_creation_info *info)
|
|||
{
|
||||
struct libwebsocket_context *context = NULL;
|
||||
char *p;
|
||||
#ifndef LWS_NO_SERVER
|
||||
int n;
|
||||
#ifndef LWS_NO_SERVER
|
||||
int opt = 1;
|
||||
struct libwebsocket *wsi;
|
||||
struct sockaddr_in serv_addr;
|
||||
|
|
Loading…
Add table
Reference in a new issue