summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-21 08:19:34 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-21 08:19:34 +0000
commitcb71ffb8c065a8a6f1ac9f5c0bb58b15f9d4f9b0 (patch)
treeebb1de54cb1a11c05073e9a178f2c82dbd5abf9c /libjava
parent313b27fa315d8a75223e17af9bc7d17ce79398ad (diff)
downloadgcc-cb71ffb8c065a8a6f1ac9f5c0bb58b15f9d4f9b0.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63212 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/gnu/java/nio/natSocketChannelImpl.cc6
2 files changed, 9 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 659311f4ec7..40cb7128806 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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>
* java/math/BigInteger.java (euclidInv): Take result array as an
diff --git a/libjava/gnu/java/nio/natSocketChannelImpl.cc b/libjava/gnu/java/nio/natSocketChannelImpl.cc
index 98fe011d5c7..480cc94e35a 100644
--- a/libjava/gnu/java/nio/natSocketChannelImpl.cc
+++ b/libjava/gnu/java/nio/natSocketChannelImpl.cc
@@ -20,7 +20,7 @@ details. */
#include <java/net/SocketException.h>
-#ifndef DISABLE_JAVA_NET
+#ifdef DISABLE_JAVA_NET
jint
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"));
}
-#else
+#else // DISABLE_JAVA_NET
jint
gnu::java::nio::SocketChannelImpl::SocketCreate ()
@@ -169,4 +169,4 @@ gnu::java::nio::SocketChannelImpl::SocketWrite (jint fd, jbyteArray data,
return result;
}
-#endif
+#endif // DISABLE_JAVA_NET