summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2014-10-18 14:29:23 +0000
committerKoop Mast <kwm@FreeBSD.org>2014-10-18 14:29:23 +0000
commitd17cf162c8e850a782e5b0df176b564b63a76bcc (patch)
treea296a94cea014c100b05cf8661a722af10629e23
parentnet/syncthing: remove STNORESTART from rc script (diff)
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@
Notes
Notes: svn path=/head/; revision=371126
-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)