summaryrefslogtreecommitdiffstats
path: root/libjava/include
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-25 23:19:12 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2006-05-25 23:19:12 +0000
commit769fada1eb0333c5f83baa09effcf124db8a56a8 (patch)
treea85fa626b85efafd000cef4ab27059638a9db419 /libjava/include
parent788f3e3e00e8adfe37d3392f6bd8212b1aa76a95 (diff)
downloadppe42-gcc-769fada1eb0333c5f83baa09effcf124db8a56a8.tar.gz
ppe42-gcc-769fada1eb0333c5f83baa09effcf124db8a56a8.zip
* configure.ac: Add sys/rw_lock.h to AC_CHECK_HEADERS.
* configure: Rebuilt. * include/config.h.in: Likewise. * include/posix.h: If HAVE_SYS_RW_LOCK_H is defined, include <sys/rw_lock.h>. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114121 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/include')
-rw-r--r--libjava/include/config.h.in3
-rw-r--r--libjava/include/posix.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/libjava/include/config.h.in b/libjava/include/config.h.in
index a57dd8325ee..5d67c859b10 100644
--- a/libjava/include/config.h.in
+++ b/libjava/include/config.h.in
@@ -292,6 +292,9 @@
/* Define to 1 if you have the <sys/ioctl.h> header file. */
#undef HAVE_SYS_IOCTL_H
+/* Define to 1 if you have the <sys/rw_lock.h> header file. */
+#undef HAVE_SYS_RW_LOCK_H
+
/* Define to 1 if you have the <sys/select.h> header file. */
#undef HAVE_SYS_SELECT_H
diff --git a/libjava/include/posix.h b/libjava/include/posix.h
index 63fc135d4d8..5b74eb7da77 100644
--- a/libjava/include/posix.h
+++ b/libjava/include/posix.h
@@ -37,6 +37,12 @@ details. */
#include <fcntl.h>
+/* The header file <sys/rw_lock.h> needs to be included before javaprims.h
+ on HP-UX 11 to avoid a compilation error. */
+#ifdef HAVE_SYS_RW_LOCK_H
+#include <sys/rw_lock.h>
+#endif
+
#include <gcj/cni.h>
#include <java/util/Properties.h>
OpenPOWER on IntegriCloud