From owner-svn-ports-head@FreeBSD.ORG Sun Sep 14 17:35:35 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2DC8BABA; Sun, 14 Sep 2014 17:35:35 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 19266F98; Sun, 14 Sep 2014 17:35:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8EHZYcb028569; Sun, 14 Sep 2014 17:35:34 GMT (envelope-from hrs@FreeBSD.org) Received: (from hrs@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8EHZYdD028568; Sun, 14 Sep 2014 17:35:34 GMT (envelope-from hrs@FreeBSD.org) Message-Id: <201409141735.s8EHZYdD028568@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: hrs set sender to hrs@FreeBSD.org using -f From: Hiroki Sato Date: Sun, 14 Sep 2014 17:35:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r368207 - head/x11-wm/libwraster/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2014 17:35:35 -0000 Author: hrs Date: Sun Sep 14 17:35:34 2014 New Revision: 368207 URL: http://svnweb.freebsd.org/changeset/ports/368207 QAT: https://qat.redports.org/buildarchive/r368207/ Log: Fix build on branches with GCC 4.2.1. Modified: head/x11-wm/libwraster/files/patch-wrlib__wraster.h Modified: head/x11-wm/libwraster/files/patch-wrlib__wraster.h ============================================================================== --- head/x11-wm/libwraster/files/patch-wrlib__wraster.h Sun Sep 14 17:28:53 2014 (r368206) +++ head/x11-wm/libwraster/files/patch-wrlib__wraster.h Sun Sep 14 17:35:34 2014 (r368207) @@ -1,11 +1,17 @@ ---- wrlib/wraster.h.orig 2014-09-09 16:49:44 UTC -+++ wrlib/wraster.h -@@ -61,7 +61,7 @@ +--- wrlib/wraster.h.orig 2014-08-30 21:29:09.000000000 +0900 ++++ wrlib/wraster.h 2014-09-15 02:31:40.000000000 +0900 +@@ -61,7 +61,13 @@ * mechanism and define an internal macro appropriately. Please note that the macro are not considered being * part of the public API. */ -#if __GNUC__ >= 3 -+#if (__GNUC__ >= 4 && __GNUC_MINOR__ >= 5) || __has_extension(attribute_deprecated_with_message) ++#ifndef __has_feature ++#define __has_feature(x) 0 ++#endif ++#ifndef __has_extension ++#define __has_extension __has_feature ++#endif ++#if __has_extension(attribute_deprecated_with_message) #define __wrlib_deprecated(msg) __attribute__ ((deprecated(msg))) #else #define __wrlib_deprecated(msg)