aboutsummaryrefslogtreecommitdiff
path: root/libjava/include
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2002-11-21 18:01:22 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2002-11-21 18:01:22 +0000
commitd1bf262d83bcc7e834d0319131250005d5af386e (patch)
tree446becd25f6ce611b2b6e14e5fa4687408b6dc67 /libjava/include
parent3d5ee65b2e605ae4073028e38a87fe438398fb91 (diff)
downloadgcc-d1bf262d83bcc7e834d0319131250005d5af386e.zip
gcc-d1bf262d83bcc7e834d0319131250005d5af386e.tar.gz
gcc-d1bf262d83bcc7e834d0319131250005d5af386e.tar.bz2
posix.h: I put too much into the #ifndef DISABLE_JAVA_NET.
2002-11-21 Michael Koch <konqueror@gmx.de> * include/posix.h: I put too much into the #ifndef DISABLE_JAVA_NET. Only the new network functions should be in it. From-SVN: r59350
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/posix.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h
index 3350f4f..521b16f 100644
--- a/libjava/include/posix.h
+++ b/libjava/include/posix.h
@@ -11,8 +11,6 @@ details. */
#ifndef __JV_POSIX_H__
#define __JV_POSIX_H__
-#ifndef DISABLE_JAVA_NET
-
/* Required on Tru64 UNIX V4/V5 so <sys/socket.h> defines prototypes of
socket functions with socklen_t instead of size_t. This must be defined
early so <standards.h> defines the correct version of __PIIX. */
@@ -42,11 +40,17 @@ details. */
#include <gcj/cni.h>
#include <java/util/Properties.h>
+#ifndef DISABLE_JAVA_NET
+#include <java/net/InetAddress.h>
+#endif
+
extern int _Jv_select (int n, fd_set *, fd_set *, fd_set *, struct timeval *);
extern jlong _Jv_platform_gettimeofday ();
extern void _Jv_platform_initialize (void);
extern void _Jv_platform_initProperties (java::util::Properties*);
+#ifndef DISABLE_JAVA_NET
+
static inline int
_Jv_socket (int domain, int type, int protocol)
{