Commit e662e109 by Adam Megacz Committed by Adam Megacz

natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out some functionality…

natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out some functionality that isn't supported yet on WIN32.

2002-10-03  Adam Megacz <adam@xwt.org>

	    * natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out
	    some functionality that isn't supported yet on WIN32.

From-SVN: r57794
parent 882affa8
2002-10-03 Adam Megacz <adam@xwt.org>
* natNetworkInterface.cc (getRealNetworkInterfaces): ifdef out
some functionality that isn't supported yet on WIN32.
2002-10-03 Tom Tromey <tromey@redhat.com> 2002-10-03 Tom Tromey <tromey@redhat.com>
* Makefile.in: Rebuilt. * Makefile.in: Rebuilt.
......
...@@ -70,6 +70,9 @@ java::net::NetworkInterface::getRealNetworkInterfaces () ...@@ -70,6 +70,9 @@ java::net::NetworkInterface::getRealNetworkInterfaces ()
::java::util::Vector* ::java::util::Vector*
java::net::NetworkInterface::getRealNetworkInterfaces () java::net::NetworkInterface::getRealNetworkInterfaces ()
{ {
#ifdef WIN32
throw new ::java::net::SocketException;
#else
int fd; int fd;
int num_interfaces = 0; int num_interfaces = 0;
struct ifconf if_data; struct ifconf if_data;
...@@ -136,6 +139,7 @@ java::net::NetworkInterface::getRealNetworkInterfaces () ...@@ -136,6 +139,7 @@ java::net::NetworkInterface::getRealNetworkInterfaces ()
::close (fd); ::close (fd);
return ht; return ht;
#endif /* WIN32 */
} }
#endif // DISABLE_JAVA_NET // #endif // DISABLE_JAVA_NET //
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment