summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2007-10-17 12:55:46 +0000
committerChris Wilson <chris+github@qwirx.com>2007-10-17 12:55:46 +0000
commitc7d4489371a9cdf2b9607d719d757c708747eb5a (patch)
treecc6796898e7c44fb8a1aceab02af146bb8995ee8
parent99075c3d16cc99528d89d123a4bb55d12f8fe910 (diff)
Compile fix for MSVC (Gary) (merges [1861])
-rw-r--r--lib/server/SocketStream.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/server/SocketStream.cpp b/lib/server/SocketStream.cpp
index 88bf386a..5cb252bd 100644
--- a/lib/server/SocketStream.cpp
+++ b/lib/server/SocketStream.cpp
@@ -168,14 +168,17 @@ void SocketStream::Open(int Type, const char *Name, int Port)
::close(mSocketHandle);
#endif
+#ifdef WIN32
BOX_ERROR("Failed to connect to socket (type " << Type <<
", name " << Name << ", port " << Port << "): " <<
- #ifdef WIN32
GetErrorMessage(err)
- #else
+ );
+#else
+ BOX_ERROR("Failed to connect to socket (type " << Type <<
+ ", name " << Name << ", port " << Port << "): " <<
strerror(err) << " (" << err << ")"
- #endif
);
+#endif
mSocketHandle = INVALID_SOCKET_VALUE;
THROW_EXCEPTION(ConnectionException, Conn_SocketConnectError)