natSocketChannelImpl.cc: Reverse logic for DISABLE_JAVA_NET.

2003-02-21  Michael Koch  <konqueror@gmx.de>

	* gnu/java/nio/natSocketChannelImpl.cc:
	Reverse logic for DISABLE_JAVA_NET. Thanks to Krister Walfridsson
	<cato@df.lth.se> for pointing to it.

From-SVN: r63212
This commit is contained in:
Michael Koch 2003-02-21 08:19:34 +00:00 committed by Michael Koch
parent 9e7d0b92a9
commit 2d4fad8e02
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2003-02-21 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natSocketChannelImpl.cc:
Reverse logic for DISABLE_JAVA_NET. Thanks to Krister Walfridsson
<cato@df.lth.se> for pointing to it.
2003-02-20 Raif S. Naffah <raif@fl.net.au> 2003-02-20 Raif S. Naffah <raif@fl.net.au>
* java/math/BigInteger.java (euclidInv): Take result array as an * java/math/BigInteger.java (euclidInv): Take result array as an

View File

@ -20,7 +20,7 @@ details. */
#include <java/net/SocketException.h> #include <java/net/SocketException.h>
#ifndef DISABLE_JAVA_NET #ifdef DISABLE_JAVA_NET
jint jint
gnu::java::nio::SocketChannelImpl::SocketCreate () gnu::java::nio::SocketChannelImpl::SocketCreate ()
@ -73,7 +73,7 @@ gnu::java::nio::SocketChannelImpl::SocketWrite (jint, jbyteArray, jint, jint)
throw new ::java::net::SocketException (JvNewStringLatin1 ("SocketWrite: not implemented")); throw new ::java::net::SocketException (JvNewStringLatin1 ("SocketWrite: not implemented"));
} }
#else #else // DISABLE_JAVA_NET
jint jint
gnu::java::nio::SocketChannelImpl::SocketCreate () gnu::java::nio::SocketChannelImpl::SocketCreate ()
@ -169,4 +169,4 @@ gnu::java::nio::SocketChannelImpl::SocketWrite (jint fd, jbyteArray data,
return result; return result;
} }
#endif #endif // DISABLE_JAVA_NET