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:
@@ -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 //
|
||||
|
||||
Reference in New Issue
Block a user