From 4ee3b704960bf0064c5b89ccee0d109272bdb13b Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Wed, 13 Nov 2013 17:59:52 -0600 Subject: [PATCH] fix windows esl compile --- libs/esl/src/esl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/esl/src/esl.c b/libs/esl/src/esl.c index 9b62e94aa4..7a29844ab4 100644 --- a/libs/esl/src/esl.c +++ b/libs/esl/src/esl.c @@ -59,6 +59,7 @@ /* These warnings need to be ignored warning in sdk header */ #include #include +#include #ifndef errno #define errno WSAGetLastError() #endif @@ -1226,7 +1227,7 @@ static esl_ssize_t handle_recv(esl_handle_t *handle, void *data, esl_size_t data esl_ssize_t activity = -1; if (handle->connected) { - if ((activity = esl_wait_sock(handle->sock, -1, ESL_POLL_READ|ESL_POLL_ERROR)) > 0) { + if ((activity = esl_wait_sock(handle->sock, 1000, ESL_POLL_READ|ESL_POLL_ERROR)) > 0) { if ((activity & ESL_POLL_ERROR)) { activity = -1; } else if ((activity & ESL_POLL_READ)) {