Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2020 08:02:34 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r528701 - head/java/openjdk7/files
Message-ID:  <202003190802.02J82YCi010931@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Thu Mar 19 08:02:33 2020
New Revision: 528701
URL: https://svnweb.freebsd.org/changeset/ports/528701

Log:
  Fix build with Clang.

Added:
  head/java/openjdk7/files/patch-hotspot_src_cpu_x86_vm_jni__x86.h   (contents, props changed)

Added: head/java/openjdk7/files/patch-hotspot_src_cpu_x86_vm_jni__x86.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/java/openjdk7/files/patch-hotspot_src_cpu_x86_vm_jni__x86.h	Thu Mar 19 08:02:33 2020	(r528701)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003190802.02J82YCi010931>