From ef0603a0f5956c6fc3d04cf91701d6c311bd6466 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 18 Apr 2007 08:14:33 +0000 Subject: 2007-04-17 Andrew John Hughes * native/jni/java-net/local.c: Fix import of FIONREAD. * native/jni/java-nio/gnu_java_nio_VMChannel.c, * native/jni/native-lib/cpnet.c: Likewise. --- ChangeLog | 8 ++++++++ native/jni/java-net/local.c | 9 ++++++++- native/jni/java-nio/gnu_java_nio_VMChannel.c | 9 ++++++++- native/jni/native-lib/cpnet.c | 9 ++++++++- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8af46f33c..4eae3a53a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-04-17 Andrew John Hughes + + * native/jni/java-net/local.c: + Fix import of FIONREAD. + * native/jni/java-nio/gnu_java_nio_VMChannel.c, + * native/jni/native-lib/cpnet.c: + Likewise. + 2007-04-16 Dalibor Topic * configure.ac (AM_PROG_CC_C_O): Added to fix automake 1.10 diff --git a/native/jni/java-net/local.c b/native/jni/java-net/local.c index c8ca91c2a..b7ec6f264 100644 --- a/native/jni/java-net/local.c +++ b/native/jni/java-net/local.c @@ -45,13 +45,20 @@ exception statement from your version. */ #include #include #include -#include #include #include #include #include +#if defined(HAVE_SYS_IOCTL_H) +#define BSD_COMP /* Get FIONREAD on Solaris2 */ +#include +#endif +#if defined(HAVE_SYS_FILIO_H) /* Get FIONREAD on Solaris 2.5 */ +#include +#endif + #include "local.h" const char * diff --git a/native/jni/java-nio/gnu_java_nio_VMChannel.c b/native/jni/java-nio/gnu_java_nio_VMChannel.c index 6ff4ece80..c8df841a1 100644 --- a/native/jni/java-nio/gnu_java_nio_VMChannel.c +++ b/native/jni/java-nio/gnu_java_nio_VMChannel.c @@ -43,7 +43,6 @@ exception statement from your version. */ #include #include -#include #include #include #include @@ -67,6 +66,14 @@ exception statement from your version. */ #include #endif /* HAVE_FCNTL_H */ +#if defined(HAVE_SYS_IOCTL_H) +#define BSD_COMP /* Get FIONREAD on Solaris2 */ +#include +#endif +#if defined(HAVE_SYS_FILIO_H) /* Get FIONREAD on Solaris 2.5 */ +#include +#endif + #define CONNECT_EXCEPTION "java/net/ConnectException" #define IO_EXCEPTION "java/io/IOException" #define SOCKET_EXCEPTION "java/net/SocketException" diff --git a/native/jni/native-lib/cpnet.c b/native/jni/native-lib/cpnet.c index f4ff0f15a..22ce69e27 100644 --- a/native/jni/native-lib/cpnet.c +++ b/native/jni/native-lib/cpnet.c @@ -46,11 +46,18 @@ exception statement from your version. */ #include #include #include -#include #include #include #include +#if defined(HAVE_SYS_IOCTL_H) +#define BSD_COMP /* Get FIONREAD on Solaris2 */ +#include +#endif +#if defined(HAVE_SYS_FILIO_H) /* Get FIONREAD on Solaris 2.5 */ +#include +#endif + #include "cpnet.h" #define SOCKET_DEFAULT_TIMEOUT -1 /* milliseconds */ -- cgit v1.2.1