natNetworkInterface fix

Adam Megacz gcj@lists.megacz.com
Thu Oct 3 15:53:00 GMT 2002


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /