fix windows esl compile
This commit is contained in:
parent
14b1656c8c
commit
86c63fb41d
|
@ -59,6 +59,7 @@
|
||||||
/* These warnings need to be ignored warning in sdk header */
|
/* These warnings need to be ignored warning in sdk header */
|
||||||
#include <Ws2tcpip.h>
|
#include <Ws2tcpip.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <errno.h>
|
||||||
#ifndef errno
|
#ifndef errno
|
||||||
#define errno WSAGetLastError()
|
#define errno WSAGetLastError()
|
||||||
#endif
|
#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;
|
esl_ssize_t activity = -1;
|
||||||
|
|
||||||
if (handle->connected) {
|
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)) {
|
if ((activity & ESL_POLL_ERROR)) {
|
||||||
activity = -1;
|
activity = -1;
|
||||||
} else if ((activity & ESL_POLL_READ)) {
|
} else if ((activity & ESL_POLL_READ)) {
|
||||||
|
|
Loading…
Reference in New Issue