From e662e109a1569b56d09d01485e202ff35c5163d7 Mon Sep 17 00:00:00 2001 From: Adam Megacz Date: Thu, 3 Oct 2002 22:54:04 +0000 Subject: natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out some functionality that isn't supported yet on WIN32. 2002-10-03 Adam Megacz * natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out some functionality that isn't supported yet on WIN32. From-SVN: r57794 --- libjava/java/net/natNetworkInterface.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libjava/java/net') diff --git a/libjava/java/net/natNetworkInterface.cc b/libjava/java/net/natNetworkInterface.cc index 1d236b0..9f3f0cd3 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 // -- cgit v1.1