aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-04-06 12:27:37 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-04-06 12:27:37 +0000
commit792f2abbfa8e991b949bc3f8ed6843fafa815358 (patch)
treeeb6ef7f923c15951b9ca303e1fb7f5e07234d9f5
parenta7962754f68c55f7fd1042021177eba215ff1540 (diff)
downloadports-792f2abbfa8e991b949bc3f8ed6843fafa815358.tar.gz
ports-792f2abbfa8e991b949bc3f8ed6843fafa815358.zip
devel/R-cran-rlang: fix build on powerpc64le
In file included from ./internal/xxhash/xxhash.h:2412: /usr/lib/clang/11.0.1/include/altivec.h:55:19: error: unknown type name 'vector' static __inline__ vector bool char __ATTRS_o_ai
-rw-r--r--devel/R-cran-rlang/patch-src_internal_xxhash_xxhash.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/devel/R-cran-rlang/patch-src_internal_xxhash_xxhash.h b/devel/R-cran-rlang/patch-src_internal_xxhash_xxhash.h
new file mode 100644
index 000000000000..4728619066d6
--- /dev/null
+++ b/devel/R-cran-rlang/patch-src_internal_xxhash_xxhash.h
@@ -0,0 +1,10 @@
+--- src/internal/xxhash/xxhash.h.orig 2021-03-31 12:18:19 UTC
++++ src/internal/xxhash/xxhash.h
+@@ -2409,6 +2409,7 @@ XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(co
+ # if defined(__GNUC__) && !defined(__APPLE_ALTIVEC__)
+ # define __APPLE_ALTIVEC__
+ # endif
++# define vector __vector
+ # include <altivec.h>
+ # endif
+