From ad8a5962f37c19dcc600d2ae9837d95697c8e20d Mon Sep 17 00:00:00 2001 From: Joakim Soderberg Date: Mon, 13 Jan 2014 15:41:25 +0100 Subject: [PATCH] SIGUSR2 doesn't exist on windows. --- lib/libwebsockets.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/libwebsockets.c b/lib/libwebsockets.c index 18b500993..6a2a0cb7f 100644 --- a/lib/libwebsockets.c +++ b/lib/libwebsockets.c @@ -2104,6 +2104,7 @@ libwebsocket_create_context(struct lws_context_creation_info *info) goto bail; } +#ifndef _WIN32 signal(SIGUSR2, lws_sigusr2); { sigset_t mask; @@ -2112,6 +2113,7 @@ libwebsocket_create_context(struct lws_context_creation_info *info) sigprocmask(SIG_BLOCK, &mask, NULL); } +#endif // NOT _WIN32 #ifdef SSL_OP_NO_COMPRESSION SSL_CTX_set_options(context->ssl_ctx, SSL_OP_NO_COMPRESSION);