summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Instance.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-07-07 15:27:59 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-07-07 15:27:59 +0000
commit354bd88ca155352b612b450e8ffa9846f8aa1e00 (patch)
treea93276197ad5a3155c04d06a7b4438c8ac8c8981 /cppe/src/IceE/Instance.cpp
parentFixed tests on linux (diff)
downloadice-354bd88ca155352b612b450e8ffa9846f8aa1e00.tar.bz2
ice-354bd88ca155352b612b450e8ffa9846f8aa1e00.tar.xz
ice-354bd88ca155352b612b450e8ffa9846f8aa1e00.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=397
Diffstat (limited to 'cppe/src/IceE/Instance.cpp')
-rw-r--r--cppe/src/IceE/Instance.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cppe/src/IceE/Instance.cpp b/cppe/src/IceE/Instance.cpp
index e3617208ab3..2cdc0bf984d 100644
--- a/cppe/src/IceE/Instance.cpp
+++ b/cppe/src/IceE/Instance.cpp
@@ -33,7 +33,9 @@
#include <stdio.h>
-#ifndef _WIN32
+#ifdef _WIN32
+# include <winsock2.h>
+#else
# include <signal.h>
# include <pwd.h>
# include <sys/types.h>
@@ -359,7 +361,7 @@ IceInternal::Instance::Instance(const CommunicatorPtr& communicator, const Prope
if(WSAStartup(version, &data) != 0)
{
SocketException ex(__FILE__, __LINE__);
- ex.error = getSocketErrno();
+ ex.error = WSAGetLastError();
throw ex;
}
#endif