summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Network.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Network.cpp')
-rw-r--r--cpp/src/Ice/Network.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/Ice/Network.cpp b/cpp/src/Ice/Network.cpp
index 66825e7be04..ce0c02b1aaa 100644
--- a/cpp/src/Ice/Network.cpp
+++ b/cpp/src/Ice/Network.cpp
@@ -12,7 +12,6 @@
//
// **********************************************************************
-#include <IceUtil/Mutex.h>
#include <Ice/Network.h>
#include <Ice/LocalException.h>
@@ -28,6 +27,11 @@ using namespace IceInternal;
# define HAVE_NO_GETHOSTBYNAME_R
#endif
+#ifdef HAVE_NO_GETHOSTBYNAME_R
+# include <IceUtil/StaticMutex.h>
+static IceUtil::StaticMutex getHostByNameMutex;
+#endif
+
bool
IceInternal::interrupted()
{
@@ -593,10 +597,6 @@ repeatAccept:
return ret;
}
-#ifdef HAVE_NO_GETHOSTBYNAME_R
-static IceUtil::StaticMutex getHostByNameMutex;
-#endif
-
void
IceInternal::getAddress(const string& host, int port, struct sockaddr_in& addr)
{