From owner-svn-ports-all@FreeBSD.ORG Sat Oct 18 14:29:24 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 3EA20464; Sat, 18 Oct 2014 14:29:24 +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 2AC69355; Sat, 18 Oct 2014 14:29:24 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9IETOLg070451; Sat, 18 Oct 2014 14:29:24 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9IETOD3070450; Sat, 18 Oct 2014 14:29:24 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201410181429.s9IETOD3070450@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Sat, 18 Oct 2014 14:29:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r371126 - head/devel/libclc/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: Sat, 18 Oct 2014 14:29:24 -0000 Author: kwm Date: Sat Oct 18 14:29:23 2014 New Revision: 371126 URL: https://svnweb.freebsd.org/changeset/ports/371126 QAT: https://qat.redports.org/buildarchive/r371126/ Log: Add a patch which is being discussed with upstream. OpenCL doesn't allow system headers to be used. This patch allows libclc to build on HEAD. Submitted by: dumbbell@ Added: head/devel/libclc/files/patch-generic_include_clc_clctypes.h (contents, props changed) Added: head/devel/libclc/files/patch-generic_include_clc_clctypes.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/libclc/files/patch-generic_include_clc_clctypes.h Sat Oct 18 14:29:23 2014 (r371126) @@ -0,0 +1,26 @@ +http://www.pcc.me.uk/pipermail/libclc-dev/2014-October/000732.html + +--- generic/include/clc/clctypes.h.orig 2014-10-18 16:18:10.913664139 +0200 ++++ generic/include/clc/clctypes.h 2014-10-18 16:21:06.837903054 +0200 +@@ -1,12 +1,13 @@ + /* 6.1.1 Built-in Scalar Data Types */ + +-#include +- + typedef unsigned char uchar; + typedef unsigned short ushort; + typedef unsigned int uint; + typedef unsigned long ulong; + ++typedef __SIZE_TYPE__ size_t; ++typedef __PTRDIFF_TYPE__ ptrdiff_t; ++ + #define __stdint_join3(a,b,c) a ## b ## c + + #define __intn_t(n) __stdint_join3(__INT, n, _TYPE__) +@@ -84,3 +85,5 @@ + typedef __attribute__((ext_vector_type(8))) double double8; + typedef __attribute__((ext_vector_type(16))) double double16; + #endif ++ ++#define NULL ((void *)0)