diff options
author | Marc Laukien <marc@zeroc.com> | 2004-01-20 15:16:01 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-01-20 15:16:01 +0000 |
commit | 6e9b237f449e04cf68a2401893e28a6fe02e2ef4 (patch) | |
tree | 773fcbfc3c2510ab384218f59169c976d5770c15 /cpp/src/Ice/Network.cpp | |
parent | fix (diff) | |
download | ice-6e9b237f449e04cf68a2401893e28a6fe02e2ef4.tar.bz2 ice-6e9b237f449e04cf68a2401893e28a6fe02e2ef4.tar.xz ice-6e9b237f449e04cf68a2401893e28a6fe02e2ef4.zip |
fix
Diffstat (limited to 'cpp/src/Ice/Network.cpp')
-rw-r--r-- | cpp/src/Ice/Network.cpp | 10 |
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) { |