This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
natNetworkInterface fix
- From: Adam Megacz <gcj at lists dot megacz dot com>
- To: java at gcc dot gnu dot org
- Date: 03 Oct 2002 15:54:22 -0700
- Subject: natNetworkInterface fix
- Organization: Myself
committed
- a
2002-10-03 Adam Megacz <adam@xwt.org>
* natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out
some functionality that isn't supported yet on WIN32.
Index: natNetworkInterface.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/net/natNetworkInterface.cc,v
retrieving revision 1.3
diff -u -r1.3 natNetworkInterface.cc
--- natNetworkInterface.cc 18 Sep 2002 10:15:52 -0000 1.3
+++ natNetworkInterface.cc 3 Oct 2002 22:51:39 -0000
@@ -70,6 +70,9 @@
::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 @@
::close (fd);
return ht;
+#endif /* WIN32 */
}
#endif // DISABLE_JAVA_NET //
--
"Through your rags I see your vanity" -- Socrates