+2004-08-14 Andreas Tobler <a.tobler@schweiz.ch>
+
+ * java/net/natInetAddressPosix.cc (lookup): Reflect rename of
+ localhostAddress to loopbackAddress.
+ * java/net/natInetAddressWin32.cc (lookup): Likewise.
+
2004-08-13 Bryce McKinlay <mckinlay@redhat.com>
* configure.in (GCINCS): Don't use "boehm-cflags". Instead, -I
#else
// FIXME: this is insufficient if some other piece of code calls
// this gethostbyname.
- JvSynchronize sync (java::net::InetAddress::localhostAddress);
+ JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyname (hostname);
#endif /* HAVE_GETHOSTBYNAME_R */
}
#else /* HAVE_GETHOSTBYADDR_R */
// FIXME: this is insufficient if some other piece of code calls
// this gethostbyaddr.
- JvSynchronize sync (java::net::InetAddress::localhostAddress);
+ JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyaddr (val, len, type);
#endif /* HAVE_GETHOSTBYADDR_R */
}
// FIXME: this is insufficient if some other piece of code calls
// this gethostbyname.
- JvSynchronize sync (java::net::InetAddress::localhostAddress);
+ JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyname (hostname);
}
else
// FIXME: this is insufficient if some other piece of code calls
// this gethostbyaddr.
- JvSynchronize sync (java::net::InetAddress::localhostAddress);
+ JvSynchronize sync (java::net::InetAddress::loopbackAddress);
hptr = gethostbyaddr (val, len, type);
}
if (hptr != NULL)