summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-08-15 20:39:48 +0200
committerMartin Sustrik <sustrik@250bpm.com>2011-08-15 20:39:48 +0200
commit714d3b288f3c92f1736a9e35d4f177bbef84c003 (patch)
treec0979a9db5bb3db2af14a30f2f781229b5c35e64 /src
parent85851d312771f043263257bcf972bd11cadec50a (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>
Diffstat (limited to 'src')
-rw-r--r--src/err.cpp3
1 files changed, 3 insertions, 0 deletions
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);
}