From owner-svn-ports-all@freebsd.org Thu Mar 19 08:02:34 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 62C6127EE94; Thu, 19 Mar 2020 08:02:34 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48jfXB20dWz3NSK; Thu, 19 Mar 2020 08:02:34 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3745C7D96; Thu, 19 Mar 2020 08:02:34 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 02J82YVa010932; Thu, 19 Mar 2020 08:02:34 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 02J82YCi010931; Thu, 19 Mar 2020 08:02:34 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <202003190802.02J82YCi010931@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Thu, 19 Mar 2020 08:02:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r528701 - head/java/openjdk7/files X-SVN-Group: ports-head X-SVN-Commit-Author: jkim X-SVN-Commit-Paths: head/java/openjdk7/files X-SVN-Commit-Revision: 528701 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Mar 2020 08:02:34 -0000 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