From owner-svn-ports-all@FreeBSD.ORG Mon Dec 8 20:58:37 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 05F81136; Mon, 8 Dec 2014 20:58:37 +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 E61F7EB6; Mon, 8 Dec 2014 20:58:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id sB8KwaFM044361; Mon, 8 Dec 2014 20:58:36 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id sB8KwaIS044360; Mon, 8 Dec 2014 20:58:36 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201412082058.sB8KwaIS044360@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Mon, 8 Dec 2014 20:58:36 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r374320 - head/x11-fonts/fontconfig/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-all@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 08 Dec 2014 20:58:37 -0000 Author: sbruno Date: Mon Dec 8 20:58:36 2014 New Revision: 374320 URL: https://svnweb.freebsd.org/changeset/ports/374320 QAT: https://qat.redports.org/buildarchive/r374320/ Log: #define fc_atomic_ptr_cmpexch() for mips/mips64 to supported functions. Fixes build on these arch's PR: 195794 Submitted by: sson Reviewed by: kwm Approved by: mentor (implicit) Added: head/x11-fonts/fontconfig/files/patch-src_fcatomic.h (contents, props changed) Added: head/x11-fonts/fontconfig/files/patch-src_fcatomic.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fonts/fontconfig/files/patch-src_fcatomic.h Mon Dec 8 20:58:36 2014 (r374320) @@ -0,0 +1,20 @@ +--- ./src/fcatomic.h.orig 2013-10-11 03:10:18.000000000 +0000 ++++ ./src/fcatomic.h 2014-12-06 21:48:12.136252912 +0000 +@@ -96,7 +96,17 @@ + #define fc_atomic_int_add(AI, V) __sync_fetch_and_add (&(AI), (V)) + + #define fc_atomic_ptr_get(P) (void *) (__sync_synchronize (), *(P)) ++#if defined(__FreeBSD__) && defined(__mips_n64) ++#include ++#include ++#define fc_atomic_ptr_cmpexch(P,O,N) atomic_cmpset_rel_64 ((uint64_t *)(P), (uint64_t)(O), (uint64_t)(N)) ++#elif defined(__FreeBSD__) && defined(__mips) ++#include ++#include ++#define fc_atomic_ptr_cmpexch(P,O,N) atomic_cmpset_rel_32 ((uint32_t *)(P), (uint32_t)(O), (uint32_t)(N)) ++#else + #define fc_atomic_ptr_cmpexch(P,O,N) __sync_bool_compare_and_swap ((P), (O), (N)) ++#endif /* defined(__FreeBSD__) && defined(__mips__) */ + + + #elif !defined(FC_NO_MT) && defined(HAVE_SOLARIS_ATOMIC_OPS)