diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 838fb1af057..3590467f9ab 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2002-10-03 Adam Megacz + + * natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out + some functionality that isn't supported yet on WIN32. + 2002-10-03 Tom Tromey * Makefile.in: Rebuilt. diff --git a/libjava/java/net/natNetworkInterface.cc b/libjava/java/net/natNetworkInterface.cc index 1d236b012c0..9f3f0cd312f 100644 --- a/libjava/java/net/natNetworkInterface.cc +++ b/libjava/java/net/natNetworkInterface.cc @@ -70,6 +70,9 @@ java::net::NetworkInterface::getRealNetworkInterfaces () ::java::util::Vector* java::net::NetworkInterface::getRealNetworkInterfaces () { +#ifdef WIN32 + throw new ::java::net::SocketException; +#else int fd; int num_interfaces = 0; struct ifconf if_data; @@ -136,6 +139,7 @@ java::net::NetworkInterface::getRealNetworkInterfaces () ::close (fd); return ht; +#endif /* WIN32 */ } #endif // DISABLE_JAVA_NET //