From 528874730cbf58c45def9493c96099e2f73c6100 Mon Sep 17 00:00:00 2001 From: mkoch Date: Thu, 21 Nov 2002 14:34:12 +0000 Subject: [PATCH] 2002-11-21 Michael Koch * include/posic.h: Moved new functions into a #ifndef DISABLE_JAVA_NET * include/win32.h: Moved new functions into a #ifndef DISABLE_JAVA_NET git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59346 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/ChangeLog | 5 +++++ libjava/include/posix.h | 7 ++++++- libjava/include/win32.h | 8 ++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 5a69507..5cb290b 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,10 @@ 2002-11-21 Michael Koch + * include/posic.h: Moved new functions into a #ifndef DISABLE_JAVA_NET + * include/win32.h: Moved new functions into a #ifndef DISABLE_JAVA_NET + +2002-11-21 Michael Koch + * java/nio/channels/AsynchronousCloseException.java, java/nio/channels/CancelledKeyException.java, java/nio/channels/ClosedByInterruptException.java, diff --git a/libjava/include/posix.h b/libjava/include/posix.h index 975b93c..3350f4f 100644 --- a/libjava/include/posix.h +++ b/libjava/include/posix.h @@ -11,6 +11,8 @@ details. */ #ifndef __JV_POSIX_H__ #define __JV_POSIX_H__ +#ifndef DISABLE_JAVA_NET + /* Required on Tru64 UNIX V4/V5 so defines prototypes of socket functions with socklen_t instead of size_t. This must be defined early so defines the correct version of __PIIX. */ @@ -102,4 +104,7 @@ _Jv_read(int s, void *buf, int len) { return ::read (s, buf, len); } -#endif + +#endif /* DISABLE_JAVA_NET */ + +#endif /* __JV_POSIX_H__ */ diff --git a/libjava/include/win32.h b/libjava/include/win32.h index 3965cb2..a1a8fc1 100644 --- a/libjava/include/win32.h +++ b/libjava/include/win32.h @@ -22,6 +22,8 @@ details. */ #include +#ifndef DISBALE_JAVA_NET + // these errors cannot occur on Win32 #define ENOTCONN 0 #define ECONNRESET 0 @@ -30,10 +32,14 @@ details. */ #define ENOPROTOOPT 109 #endif +#endif // DISBALE_JAVA_NET + extern void _Jv_platform_initialize (void); extern void _Jv_platform_initProperties (java::util::Properties*); extern jlong _Jv_platform_gettimeofday (); +#ifndef DISBALE_JAVA_NET + static inline int _Jv_socket (int domain, int type, int protocol) { @@ -93,4 +99,6 @@ _Jv_read(int s, void *buf, int len) ARRAY and return the exact number of values stored. */ extern int backtrace (void **__array, int __size); +#endif /* DISBALE_JAVA_NET */ + #endif /* __JV_WIN32_H__ */ -- 2.7.4