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 + + * gnu/java/nio/natSocketChannelImpl.cc: + Reverse logic for DISABLE_JAVA_NET. Thanks to Krister Walfridsson + for pointing to it. + 2003-02-20 Raif S. Naffah * 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 -#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