Date: Sat, 18 Oct 2014 14:29:24 +0000 (UTC) From: Koop Mast <kwm@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r371126 - head/devel/libclc/files Message-ID: <201410181429.s9IETOD3070450@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <stddef.h> +- + 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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410181429.s9IETOD3070450>