summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Network.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2001-11-28 13:24:18 +0000
committerMarc Laukien <marc@zeroc.com>2001-11-28 13:24:18 +0000
commit322b6cf76f6b3e043b03b288b43850ff3f32b3ce (patch)
tree7b0351256524ae6e2b3aa168ff5f6acdcfdbaad3 /cpp/src/Ice/Network.cpp
parentUpdate project file for the admin tool. (diff)
downloadice-322b6cf76f6b3e043b03b288b43850ff3f32b3ce.tar.bz2
ice-322b6cf76f6b3e043b03b288b43850ff3f32b3ce.tar.xz
ice-322b6cf76f6b3e043b03b288b43850ff3f32b3ce.zip
fixed the select bug under win32
Diffstat (limited to 'cpp/src/Ice/Network.cpp')
-rw-r--r--cpp/src/Ice/Network.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index 1a84e334806..9bbfa0c5afe 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -608,7 +608,7 @@ void
IceInternal::getLocalAddress(int port, struct sockaddr_in& addr)
{
char host[1024 + 1];
- if (gethostname(host, 1024) == -1)
+ if (gethostname(host, 1024) == SOCKET_ERROR)
{
SystemException ex(__FILE__, __LINE__);
ex.error = getSystemErrno();
@@ -650,7 +650,7 @@ string
IceInternal::getLocalHost(bool numeric)
{
char host[1024 + 1];
- if (gethostname(host, 1024) == -1)
+ if (gethostname(host, 1024) == SOCKET_ERROR)
{
SystemException ex(__FILE__, __LINE__);
ex.error = getSystemErrno();