aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2021-02-14 13:15:44 +0800
committerGreg Lewis <glewis@FreeBSD.org>2021-02-14 13:15:44 +0800
commitc14b19b53c2f4e18f1fae1b3225101160bae9490 (patch)
treeb9547749fd76d9869ccb8d514d5b883ca95c5295 /java
parent95b03e93d3f7c8efc86fdf942ea1563d99234799 (diff)
downloadfreebsd-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.cpp15
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)