summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/SslConnectionOpenSSLClient.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-04-25 16:57:06 +0000
committerMark Spruiell <mes@zeroc.com>2002-04-25 16:57:06 +0000
commit244947a2568a7496b687e0d9fea802966f273e5f (patch)
treeec8cf201f5e30677913dfd261b051b229c746496 /cpp/src/IceSSL/SslConnectionOpenSSLClient.cpp
parentVC++ fix (diff)
downloadice-244947a2568a7496b687e0d9fea802966f273e5f.tar.bz2
ice-244947a2568a7496b687e0d9fea802966f273e5f.tar.xz
ice-244947a2568a7496b687e0d9fea802966f273e5f.zip
Win32 fix
Diffstat (limited to 'cpp/src/IceSSL/SslConnectionOpenSSLClient.cpp')
-rw-r--r--cpp/src/IceSSL/SslConnectionOpenSSLClient.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/IceSSL/SslConnectionOpenSSLClient.cpp b/cpp/src/IceSSL/SslConnectionOpenSSLClient.cpp
index 0920aa798d3..c29998a3689 100644
--- a/cpp/src/IceSSL/SslConnectionOpenSSLClient.cpp
+++ b/cpp/src/IceSSL/SslConnectionOpenSSLClient.cpp
@@ -163,7 +163,11 @@ IceSSL::OpenSSL::ClientConnection::init(int timeout)
// ECONNREFUSED.
//
ConnectFailedException ex(__FILE__, __LINE__);
+#ifdef _WIN32
+ ex.error = WSAECONNREFUSED;
+#else
ex.error = ECONNREFUSED;
+#endif
throw ex;
}
}