Hi, I replaced two occurances of strerror() in javanet.c with the corresponding target native macro, in order to make this file compile on platforms that don't have strerror() (in this case, WindowsCE).
2006-01-10 Roman Kennke <[EMAIL PROTECTED]> * native/jni/java-net/javanet.c (_javanet_shutdownOutput): Replaced strerror() with TARGET_NATIVE_LAST_ERROR_STRING() for portability. (_javanet_shutdownInput): Replaced strerror() with TARGET_NATIVE_LAST_ERROR_STRING() for portability. /Roman
Index: native/jni/java-net/javanet.c =================================================================== RCS file: /cvsroot/classpath/classpath/native/jni/java-net/javanet.c,v retrieving revision 1.26 diff -u -r1.26 javanet.c --- native/jni/java-net/javanet.c 9 Jan 2006 21:30:15 -0000 1.26 +++ native/jni/java-net/javanet.c 10 Jan 2006 12:21:02 -0000 @@ -1560,7 +1560,8 @@ /* Shutdown input stream of socket. */ if (shutdown (fd, SHUT_RD) == -1) { - JCL_ThrowException (env, SOCKET_EXCEPTION, strerror (errno)); + JCL_ThrowException (env, SOCKET_EXCEPTION, + TARGET_NATIVE_LAST_ERROR_STRING()); return; } } @@ -1585,7 +1586,8 @@ /* Shutdown output stream of socket. */ if (shutdown (fd, SHUT_WR) == -1) { - JCL_ThrowException (env, SOCKET_EXCEPTION, strerror (errno)); + JCL_ThrowException (env, SOCKET_EXCEPTION, + TARGET_NATIVE_LAST_ERROR_STRING()); return; } }
_______________________________________________ Classpath-patches mailing list Classpath-patches@gnu.org http://lists.gnu.org/mailman/listinfo/classpath-patches