aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/posix.h
diff options
context:
space:
mode:
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>2006-05-25 23:19:12 +0000
committerJohn David Anglin <danglin@gcc.gnu.org>2006-05-25 23:19:12 +0000
commit5920d981108b58efb4d88b28180a6e948879d920 (patch)
treea85fa626b85efafd000cef4ab27059638a9db419 /libjava/include/posix.h
parente92fb50114706dd60fc43ccec488a7ac99b5fa9b (diff)
downloadgcc-5920d981108b58efb4d88b28180a6e948879d920.zip
gcc-5920d981108b58efb4d88b28180a6e948879d920.tar.gz
gcc-5920d981108b58efb4d88b28180a6e948879d920.tar.bz2
configure.ac: Add sys/rw_lock.h to AC_CHECK_HEADERS.
* 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>. From-SVN: r114121
Diffstat (limited to 'libjava/include/posix.h')
-rw-r--r--libjava/include/posix.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libjava/include/posix.h b/libjava/include/posix.h
index 63fc135..5b74eb7 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>