aboutsummaryrefslogtreecommitdiff
path: root/java/openjdk7
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2020-03-19 08:02:33 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2020-03-19 08:02:33 +0000
commit8f134093ae618b077452a58cb04b48e3bade0237 (patch)
treefae65daf3515ebaab8d924151553008c0a5642a6 /java/openjdk7
parent309826e36bdb6f54bd73423aaa92a080c1045c6b (diff)
downloadports-8f134093ae618b077452a58cb04b48e3bade0237.tar.gz
ports-8f134093ae618b077452a58cb04b48e3bade0237.zip
Fix build with Clang.
Notes
Notes: svn path=/head/; revision=528701
Diffstat (limited to 'java/openjdk7')
-rw-r--r--java/openjdk7/files/patch-hotspot_src_cpu_x86_vm_jni__x86.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/java/openjdk7/files/patch-hotspot_src_cpu_x86_vm_jni__x86.h b/java/openjdk7/files/patch-hotspot_src_cpu_x86_vm_jni__x86.h
new file mode 100644
index 000000000000..dbdba09700d9
--- /dev/null
+++ b/java/openjdk7/files/patch-hotspot_src_cpu_x86_vm_jni__x86.h
@@ -0,0 +1,14 @@
+--- hotspot/src/cpu/x86/vm/jni_x86.h.orig 2020-03-01 18:10:20 UTC
++++ hotspot/src/cpu/x86/vm/jni_x86.h
+@@ -28,7 +28,10 @@
+
+ #if defined(SOLARIS) || defined(LINUX) || defined(_ALLBSD_SOURCE)
+
+-#if defined(__GNUC__) && (__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2)
++#ifndef __has_attribute
++ #define __has_attribute(x) 0
++#endif
++#if (defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4) && (__GNUC_MINOR__ > 2))) || __has_attribute(visibility)
+ #define JNIEXPORT __attribute__((visibility("default")))
+ #define JNIIMPORT __attribute__((visibility("default")))
+ #else