diff options
author | Alexandre Oliva <oliva@dcc.unicamp.br> | 1999-08-01 23:39:53 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 1999-08-01 23:39:53 +0000 |
commit | 130e63de4a0cb4495036ddfe79b3207b8c1f1b38 (patch) | |
tree | 5f1fd4c26e1d33e412cbcfbe6943ed343dcc10ce /libjava | |
parent | 73a8b900bdbf5199dd7cda11df829583910f1b7e (diff) | |
download | gcc-130e63de4a0cb4495036ddfe79b3207b8c1f1b38.zip gcc-130e63de4a0cb4495036ddfe79b3207b8c1f1b38.tar.gz gcc-130e63de4a0cb4495036ddfe79b3207b8c1f1b38.tar.bz2 |
configure.in: Check for bstring.h.
1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br>
* configure.in: Check for bstring.h.
* configure, include/config.h.in: Rebuilt.
* java/net/natPlainDatagramSocketImpl.cc: #include bstring.h.
* java/net/natPlainSocketImpl.cc: Likewise.
From-SVN: r28378
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 7 | ||||
-rwxr-xr-x | libjava/configure | 2 | ||||
-rw-r--r-- | libjava/configure.in | 2 | ||||
-rw-r--r-- | libjava/include/config.h.in | 3 | ||||
-rw-r--r-- | libjava/java/net/natPlainDatagramSocketImpl.cc | 5 | ||||
-rw-r--r-- | libjava/java/net/natPlainSocketImpl.cc | 5 |
6 files changed, 22 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 3bfe688..2a2a9e2 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,10 @@ +1999-08-01 Alexandre Oliva <oliva@dcc.unicamp.br> + + * configure.in: Check for bstring.h. + * configure, include/config.h.in: Rebuilt. + * java/net/natPlainDatagramSocketImpl.cc: #include bstring.h. + * java/net/natPlainSocketImpl.cc: Likewise. + 1999-07-31 Tom Tromey <tromey@cygnus.com> * NEWS: Likewise. diff --git a/libjava/configure b/libjava/configure index e0af1c8..e474168 100755 --- a/libjava/configure +++ b/libjava/configure @@ -4527,7 +4527,7 @@ EOF -for ac_hdr in unistd.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h +for ac_hdr in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 diff --git a/libjava/configure.in b/libjava/configure.in index 0d62de6..af7a6e4 100644 --- a/libjava/configure.in +++ b/libjava/configure.in @@ -505,7 +505,7 @@ AC_SUBST(AM_RUNTESTFLAGS) dnl We check for sys/filio.h because Solaris 2.5 defines FIONREAD there. dnl On that system, sys/ioctl.h will not include sys/filio.h unless dnl BSD_COMP is defined; just including sys/filio.h is simpler. -AC_CHECK_HEADERS(unistd.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h) +AC_CHECK_HEADERS(unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h pwd.h sys/config.h inttypes.h stdint.h) dnl We avoid AC_HEADER_DIRENT since we really only care about dirent.h dnl for now. If you change this, you also must update natFile.cc. AC_CHECK_HEADERS(dirent.h) diff --git a/libjava/include/config.h.in b/libjava/include/config.h.in index bd43c75..d9b9a0a 100644 --- a/libjava/include/config.h.in +++ b/libjava/include/config.h.in @@ -214,6 +214,9 @@ /* Define if you have the <arpa/inet.h> header file. */ #undef HAVE_ARPA_INET_H +/* Define if you have the <bstring.h> header file. */ +#undef HAVE_BSTRING_H + /* Define if you have the <dirent.h> header file. */ #undef HAVE_DIRENT_H diff --git a/libjava/java/net/natPlainDatagramSocketImpl.cc b/libjava/java/net/natPlainDatagramSocketImpl.cc index 9474eb2..ec08d20 100644 --- a/libjava/java/net/natPlainDatagramSocketImpl.cc +++ b/libjava/java/net/natPlainDatagramSocketImpl.cc @@ -28,6 +28,11 @@ details. */ #include <stdio.h> #include <string.h> +#if HAVE_BSTRING_H +// Needed for bzero, implicitly used by FD_ZERO on IRIX 5.2 +#include <bstring.h> +#endif + #include <cni.h> #include <java/io/IOException.h> #include <java/io/FileDescriptor.h> diff --git a/libjava/java/net/natPlainSocketImpl.cc b/libjava/java/net/natPlainSocketImpl.cc index a41a681..2e7f9d5 100644 --- a/libjava/java/net/natPlainSocketImpl.cc +++ b/libjava/java/net/natPlainSocketImpl.cc @@ -18,6 +18,11 @@ details. */ #include <stdio.h> #include <string.h> +#if HAVE_BSTRING_H +// Needed for bzero, implicitly used by FD_ZERO on IRIX 5.2 +#include <bstring.h> +#endif + #include <cni.h> #include <javaprims.h> #include <java/io/IOException.h> |