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
This commit is contained in:
Adam Megacz 2002-10-03 22:54:04 +00:00 committed by Adam Megacz
parent 882affa8c6
commit e662e109a1
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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>
* Makefile.in: Rebuilt.

View File

@ -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 //