diff options
Diffstat (limited to 'recipes-core/openjdk/patches-openjdk-7')
-rw-r--r-- | recipes-core/openjdk/patches-openjdk-7/icedtea-jdk-fix-xattr-include.patch | 11 | ||||
-rw-r--r-- | recipes-core/openjdk/patches-openjdk-7/icedtea-m4-fix-xattr-include-path.patch | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/recipes-core/openjdk/patches-openjdk-7/icedtea-jdk-fix-xattr-include.patch b/recipes-core/openjdk/patches-openjdk-7/icedtea-jdk-fix-xattr-include.patch new file mode 100644 index 0000000..ef44e7e --- /dev/null +++ b/recipes-core/openjdk/patches-openjdk-7/icedtea-jdk-fix-xattr-include.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c | ||
2 | +++ openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c | ||
3 | @@ -38,7 +38,7 @@ | ||
4 | |||
5 | #ifdef COMPILE_AGAINST_SYSCALLS | ||
6 | #include <sys/types.h> | ||
7 | -#include <attr/xattr.h> | ||
8 | +#include <sys/xattr.h> | ||
9 | #else | ||
10 | #include <syscalls_fp.h> | ||
11 | #endif | ||
diff --git a/recipes-core/openjdk/patches-openjdk-7/icedtea-m4-fix-xattr-include-path.patch b/recipes-core/openjdk/patches-openjdk-7/icedtea-m4-fix-xattr-include-path.patch new file mode 100644 index 0000000..f9b526f --- /dev/null +++ b/recipes-core/openjdk/patches-openjdk-7/icedtea-m4-fix-xattr-include-path.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- a/acinclude.m4 | ||
2 | +++ b/acinclude.m4 | ||
3 | @@ -2234,7 +2234,7 @@ | ||
4 | dnl Check for syscalls | ||
5 | AC_CHECK_FUNCS([openat64 fstatat64 fgetxattr fsetxattr fremovexattr flistxattr unlinkat renameat futimesat fdopendir epoll_create epoll_ctl epoll_wait],, | ||
6 | [AC_MSG_ERROR([Could not find required syscalls; check config.log and use --disable-compile-against-syscalls if necessary.])]) | ||
7 | - AC_CHECK_HEADERS([sys/epoll.h attr/xattr.h], | ||
8 | + AC_CHECK_HEADERS([sys/epoll.h sys/xattr.h], | ||
9 | , [AC_MSG_ERROR([Could not find required system headers; install the appropriate files from glibc-headers, libc6-dev and/or libattr-devel, libattr1-dev or use --disable-compile-against-syscalls if necessary.])]) | ||
10 | ENABLE_SYSCALL_COMPILATION=true | ||
11 | fi | ||