This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

natNetworkInterface fix


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]