diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-08-15 20:39:48 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-08-15 20:39:48 +0200 |
commit | 714d3b288f3c92f1736a9e35d4f177bbef84c003 (patch) | |
tree | c0979a9db5bb3db2af14a30f2f781229b5c35e64 | |
parent | 85851d312771f043263257bcf972bd11cadec50a (diff) |
EAFNOSUPPORT defined on Windows platform
Windows headers don't defined this error.
This patch defines it if not already defined.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
-rw-r--r-- | include/zmq.h | 3 | ||||
-rw-r--r-- | src/err.cpp | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/zmq.h b/include/zmq.h index cca7d01..b44bd5e 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -101,6 +101,9 @@ ZMQ_EXPORT void zmq_version (int *major, int *minor, int *patch); #ifndef ENOTSOCK #define ENOTSOCK (ZMQ_HAUSNUMERO + 9) #endif +#ifndef EAFNOSUPPORT +#define EAFNOSUPPORT (ZMQ_HAUSNUMERO + 10) +#endif /* Native 0MQ error codes. */ #define EFSM (ZMQ_HAUSNUMERO + 51) diff --git a/src/err.cpp b/src/err.cpp index 31e2974..f374de9 100644 --- a/src/err.cpp +++ b/src/err.cpp @@ -228,6 +228,9 @@ void zmq::wsa_error_to_errno () case WSAEADDRNOTAVAIL: errno = EADDRNOTAVAIL; return; + case WSAEAFNOSUPPORT: + errno = EAFNOSUPPORT; + return; default: wsa_assert (false); } |