mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-19 08:46:44 +01:00
Problem: wrong assertion macro used on Windows
Solution: use wsa_assert instead of errno_assert
This commit is contained in:
parent
2f27bcd74b
commit
5873894c83
@ -151,10 +151,14 @@ void zmq::poll_t::loop ()
|
||||
|
||||
// Wait for events.
|
||||
int rc = poll (&pollset[0], pollset.size (), timeout ? timeout : -1);
|
||||
#ifdef ZMQ_HAVE_WINDOWS
|
||||
wsa_assert (rc != SOCKET_ERROR);
|
||||
#else
|
||||
if (rc == -1) {
|
||||
errno_assert (errno == EINTR);
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
// If there are no events (i.e. it's a timeout) there's no point
|
||||
// in checking the pollset.
|
||||
|
Loading…
x
Reference in New Issue
Block a user