From 92795d64dbaff49c79f92902f716255e9cd36eb8 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 3 Apr 2014 22:38:49 +0800 Subject: [PATCH] windows fix breakage from plat refactor Reported-by Marjan Tomas Signed-off-by: Andy Green --- lib/lws-plat-win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/lws-plat-win.c b/lib/lws-plat-win.c index efbdd27b..4da9c75d 100644 --- a/lib/lws-plat-win.c +++ b/lib/lws-plat-win.c @@ -50,7 +50,7 @@ LWS_VISIBLE int lws_send_pipe_choked(struct libwebsocket *wsi) return wsi->sock_send_blocking; } -static int lws_poll_listen_fd(struct libwebsocket_pollfd *fd) +LWS_VISIBLE int lws_poll_listen_fd(struct libwebsocket_pollfd *fd) { fd_set readfds; struct timeval tv = { 0, 0 }; @@ -156,6 +156,7 @@ lws_plat_set_socket_options(struct libwebsocket_context *context, int fd) u_long optl = 1; DWORD dwBytesRet; struct tcp_keepalive alive; + struct protoent *tcp_proto; if (context->ka_time) { /* enable keepalive on this socket */