summaryrefslogtreecommitdiffstats
path: root/libjava/include/win32.h
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-21 14:34:12 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-21 14:34:12 +0000
commit528874730cbf58c45def9493c96099e2f73c6100 (patch)
tree80fec0f3860f3acd1330dbdf969f335088899e04 /libjava/include/win32.h
parente566129ff7878a69ca5917004786548951a11c92 (diff)
downloadppe42-gcc-528874730cbf58c45def9493c96099e2f73c6100.tar.gz
ppe42-gcc-528874730cbf58c45def9493c96099e2f73c6100.zip
2002-11-21 Michael Koch <konqueror@gmx.de>
* 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
Diffstat (limited to 'libjava/include/win32.h')
-rw-r--r--libjava/include/win32.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libjava/include/win32.h b/libjava/include/win32.h
index 3965cb2575f..a1a8fc159f8 100644
--- a/libjava/include/win32.h
+++ b/libjava/include/win32.h
@@ -22,6 +22,8 @@ details. */
#include <io.h>
+#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__ */
OpenPOWER on IntegriCloud