summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/qthreads/restrict.patch
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/qthreads/restrict.patch')
-rw-r--r--var/spack/repos/builtin/packages/qthreads/restrict.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/qthreads/restrict.patch b/var/spack/repos/builtin/packages/qthreads/restrict.patch
new file mode 100644
index 0000000000..4c95714f6b
--- /dev/null
+++ b/var/spack/repos/builtin/packages/qthreads/restrict.patch
@@ -0,0 +1,12 @@
+--- a/include/qthread/common.h.in
++++ b/include/qthread/common.h.in
+@@ -84,7 +84,9 @@
+ /* Define to the equivalent of the C99 'restrict' keyword, or to
+ nothing if this is not supported. Do not define if restrict is
+ supported directly. */
++#ifndef restrict
+ #undef restrict
++#endif
+ /* Work around a bug in Sun C++: it does not support _Restrict or
+ __restrict__, even though the corresponding Sun C compiler ends up with
+ "#define restrict _Restrict" or "#define restrict __restrict__" in the