diff options
author | Mohan Embar <gnustuff@thisiscool.com> | 2003-08-29 04:13:04 +0000 |
---|---|---|
committer | Mohan Embar <membar@gcc.gnu.org> | 2003-08-29 04:13:04 +0000 |
commit | a1d6cdc2d7a48f9b584e2323b173176055adc53a (patch) | |
tree | bf0128aadf8f43ded3bdc0de40a3495af107d6c0 /libjava/java/net/natNetworkInterfaceWin32.cc | |
parent | 0b3f3d2213ab28a7f1050af5c077aec000fd356c (diff) | |
download | gcc-a1d6cdc2d7a48f9b584e2323b173176055adc53a.zip gcc-a1d6cdc2d7a48f9b584e2323b173176055adc53a.tar.gz gcc-a1d6cdc2d7a48f9b584e2323b173176055adc53a.tar.bz2 |
natInetAddressWin32.cc, [...]: Readded code enclosed in DISABLE_JAVA_NET defines in preparation for MinGW...
* java/net/natInetAddressWin32.cc,
java/net/natNetworkInterfaceWin32.cc,
java/net/natPlainDatagramSocketImplWin32.cc,
java/net/natPlainSocketImplWin32.cc:
Readded code enclosed in DISABLE_JAVA_NET defines
in preparation for MinGW cleanup / networking
patch
From-SVN: r70902
Diffstat (limited to 'libjava/java/net/natNetworkInterfaceWin32.cc')
-rw-r--r-- | libjava/java/net/natNetworkInterfaceWin32.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libjava/java/net/natNetworkInterfaceWin32.cc b/libjava/java/net/natNetworkInterfaceWin32.cc index c204841..47d68b5 100644 --- a/libjava/java/net/natNetworkInterfaceWin32.cc +++ b/libjava/java/net/natNetworkInterfaceWin32.cc @@ -52,6 +52,17 @@ details. */ #include <java/net/SocketException.h> #include <java/util/Vector.h> +#ifdef DISABLE_JAVA_NET + +::java::util::Vector* +java::net::NetworkInterface::getRealNetworkInterfaces () +{ + ::java::util::Vector* ht = new ::java::util::Vector(); + return ht; +} + +#else /* DISABLE_JAVA_NET */ + ::java::util::Vector* java::net::NetworkInterface::getRealNetworkInterfaces () { @@ -127,3 +138,5 @@ java::net::NetworkInterface::getRealNetworkInterfaces () return ht; #endif /* WIN32 */ } + +#endif // DISABLE_JAVA_NET // |