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

windows fix breakage from plat refactor

Reported-by Marjan Tomas

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2014-04-03 22:38:49 +08:00
parent a5fe1192cf
commit 92795d64db

View file

@ -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 */