1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

fixed windows build

This commit is contained in:
martell 2014-01-22 18:17:03 +00:00 committed by Andy Green
parent ac1ebba564
commit 19c73f3bed
2 changed files with 7 additions and 1 deletions

View file

@ -2104,6 +2104,8 @@ libwebsocket_create_context(struct lws_context_creation_info *info)
goto bail;
}
#if defined(WIN32) || defined(_WIN32)
#else
signal(SIGUSR2, lws_sigusr2);
{
sigset_t mask;
@ -2112,6 +2114,7 @@ libwebsocket_create_context(struct lws_context_creation_info *info)
sigprocmask(SIG_BLOCK, &mask, NULL);
}
#endif
#ifdef SSL_OP_NO_COMPRESSION
SSL_CTX_set_options(context->ssl_ctx, SSL_OP_NO_COMPRESSION);

View file

@ -250,17 +250,20 @@ int main(int argc, char **argv)
}
}
#ifndef LWS_NO_DAEMONIZE
#ifndef LWS_NO_DAEMONIZE
/*
* normally lock path would be /var/lock/lwsts or similar, to
* simplify getting started without having to take care about
* permissions or running as root, set to /tmp/.lwsts-lock
*/
#if defined(WIN32) || defined(_WIN32)
#else
if (!client && daemonize && lws_daemonize("/tmp/.lwstecho-lock")) {
fprintf(stderr, "Failed to daemonize\n");
return 1;
}
#endif
#endif
#ifdef WIN32
#else