From 16034e4ba3fd9c4e07b00499535b606b781f80b7 Mon Sep 17 00:00:00 2001 From: Jerome Marc Date: Thu, 2 May 2002 17:33:59 +0000 Subject: [PATCH] natPlainSocketImpl.cc: Include sys/ioctl.h and sys/filio.h, if present. 2002-05-02 Jerome Marc * java/net/natPlainSocketImpl.cc: Include sys/ioctl.h and sys/filio.h, if present. From-SVN: r53050 --- libjava/ChangeLog | 5 +++++ libjava/java/net/natPlainSocketImpl.cc | 12 ++++++++++++ 2 files changed, 17 insertions(+) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 9a0891bde09..c774a85fab1 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2002-05-02 Jerome Marc + + * java/net/natPlainSocketImpl.cc: Include sys/ioctl.h and + sys/filio.h, if present. + 2002-04-30 Tom Tromey * java/io/BufferedReader.java (fill): Handle case where markPos diff --git a/libjava/java/net/natPlainSocketImpl.cc b/libjava/java/net/natPlainSocketImpl.cc index 2c6a2415cfb..e16c372d989 100644 --- a/libjava/java/net/natPlainSocketImpl.cc +++ b/libjava/java/net/natPlainSocketImpl.cc @@ -46,11 +46,23 @@ read(int s, void *buf, int len) #define ENOPROTOOPT 109 #endif #else /* WIN32 */ + +#ifdef HAVE_SYS_IOCTL_H +#define BSD_COMP /* Get FIONREAD on Solaris2. */ +#include +#endif + +// Pick up FIONREAD on Solaris 2.5. +#ifdef HAVE_SYS_FILIO_H +#include +#endif + #include #include #include #include #include + #endif /* WIN32 */ #endif /* DISABLE_JAVA_NET */