diff options
Diffstat (limited to 'libjava/include/posix.h')
| -rw-r--r-- | libjava/include/posix.h | 6 |
1 files changed, 6 insertions, 0 deletions
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> |

