diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2021-02-14 05:15:44 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2021-02-14 05:15:44 +0000 |
commit | c14b19b53c2f4e18f1fae1b3225101160bae9490 (patch) | |
tree | b9547749fd76d9869ccb8d514d5b883ca95c5295 /java/openjdk13/files | |
parent | science/spglib: Update 1.16.0 -> 1.16.1 (diff) |
Fix the build on aarch64
Diffstat (limited to 'java/openjdk13/files')
-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) |