diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-04-15 07:59:28 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-04-15 07:59:28 +0200 |
commit | 590ad2510bb113fdcd36951f6321fc73be94944a (patch) | |
tree | 1bbcea1ae58584c10c8d51ca35f37c1ec7f06ff6 | |
parent | 5444064c1a195daee5e57eb996157393a4eed796 (diff) |
Error handling for accept on Cygwin fixed
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r-- | src/tcp_listener.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tcp_listener.cpp b/src/tcp_listener.cpp index 205ddc1..8de564f 100644 --- a/src/tcp_listener.cpp +++ b/src/tcp_listener.cpp @@ -310,7 +310,8 @@ zmq::fd_t zmq::tcp_listener_t::accept () #if (defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_FREEBSD || \ defined ZMQ_HAVE_OPENBSD || defined ZMQ_HAVE_OSX || \ - defined ZMQ_HAVE_OPENVMS || defined ZMQ_HAVE_NETBSD) + defined ZMQ_HAVE_OPENVMS || defined ZMQ_HAVE_NETBSD || \ + defined ZMQ_HAVE_CYGWIN) if (sock == -1 && (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR || errno == ECONNABORTED)) |