windows build fix
This commit is contained in:
parent
316c630830
commit
ee12fbdb5f
@ -52,11 +52,11 @@ namespace ix
|
|||||||
|
|
||||||
struct pollfd fds[nfds];
|
struct pollfd fds[nfds];
|
||||||
fds[0].fd = _sockfd;
|
fds[0].fd = _sockfd;
|
||||||
fds[0].events = POLLIN | POLLHUP | POLLERR;
|
fds[0].events = POLLIN;
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
fds[1].fd = _eventfd.getFd();
|
fds[1].fd = _eventfd.getFd();
|
||||||
fds[1].events = POLLIN | POLLHUP | POLLERR;
|
fds[1].events = POLLIN;
|
||||||
#endif
|
#endif
|
||||||
int ret = ::poll(fds, nfds, timeoutSecs * 1000);
|
int ret = ::poll(fds, nfds, timeoutSecs * 1000);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user