diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2021-02-14 13:15:44 +0800 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2021-02-14 13:15:44 +0800 |
commit | c14b19b53c2f4e18f1fae1b3225101160bae9490 (patch) | |
tree | b9547749fd76d9869ccb8d514d5b883ca95c5295 /java | |
parent | 95b03e93d3f7c8efc86fdf942ea1563d99234799 (diff) | |
download | freebsd-ports-gnome-c14b19b53c2f4e18f1fae1b3225101160bae9490.tar.gz freebsd-ports-gnome-c14b19b53c2f4e18f1fae1b3225101160bae9490.tar.zst freebsd-ports-gnome-c14b19b53c2f4e18f1fae1b3225101160bae9490.zip |
Fix the build on aarch64
Diffstat (limited to 'java')
-rw-r--r-- | java/openjdk13/files/patch-src_hotspot_cpu_aarch64_vm__version__aarch64.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/java/openjdk13/files/patch-src_hotspot_cpu_aarch64_vm__version__aarch64.cpp b/java/openjdk13/files/patch-src_hotspot_cpu_aarch64_vm__version__aarch64.cpp new file mode 100644 index 000000000000..e89a35822d97 --- /dev/null +++ b/java/openjdk13/files/patch-src_hotspot_cpu_aarch64_vm__version__aarch64.cpp @@ -0,0 +1,15 @@ +--- src/hotspot/cpu/aarch64/vm_version_aarch64.cpp ++++ src/hotspot/cpu/aarch64/vm_version_aarch64.cpp +@@ -34,8 +34,12 @@ + + #include OS_HEADER_INLINE(os) + ++#if defined(__linux__) + #include <sys/auxv.h> + #include <asm/hwcap.h> ++#elif defined(__FreeBSD__) ++#include <machine/elf.h> ++#endif + + #ifndef HWCAP_ASIMD + #define HWCAP_ASIMD (1<<1) |