aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2014-10-18 22:29:23 +0800
committerkwm <kwm@FreeBSD.org>2014-10-18 22:29:23 +0800
commit1e507b4d93b42b3cfa9ec75f9097bc0dec89ae6a (patch)
treea296a94cea014c100b05cf8661a722af10629e23 /devel
parent6d1e9d1e559a1b9c6468f0b952af588fac14e607 (diff)
downloadfreebsd-ports-gnome-1e507b4d93b42b3cfa9ec75f9097bc0dec89ae6a.tar.gz
freebsd-ports-gnome-1e507b4d93b42b3cfa9ec75f9097bc0dec89ae6a.tar.zst
freebsd-ports-gnome-1e507b4d93b42b3cfa9ec75f9097bc0dec89ae6a.zip
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@
Diffstat (limited to 'devel')
-rw-r--r--devel/libclc/files/patch-generic_include_clc_clctypes.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/libclc/files/patch-generic_include_clc_clctypes.h b/devel/libclc/files/patch-generic_include_clc_clctypes.h
new file mode 100644
index 000000000000..d328eec86108
--- /dev/null
+++ b/devel/libclc/files/patch-generic_include_clc_clctypes.h
@@ -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)