freebsd-ports/archivers/c-blosc2/files/patch-plugins_codecs_ndlz_xxhash.h
Piotr Kubaj f3f7446a00 archivers/c-blosc2: fix build on powerpc64le
In file included from /wrkdirs/usr/ports/archivers/c-blosc2/work/c-blosc2-2.0.4/plugins/codecs/ndlz/xxhash.h:2937:
/usr/lib/clang/11.0.1/include/altivec.h:55:19: error: unknown type name 'vector'
static __inline__ vector bool char __ATTRS_o_ai
2021-11-02 17:51:24 +00:00

10 lines
326 B
C

--- plugins/codecs/ndlz/xxhash.h.orig 2021-10-02 12:17:56 UTC
+++ plugins/codecs/ndlz/xxhash.h
@@ -2934,6 +2934,7 @@ enum XXH_VECTOR_TYPE /* fake enum */ {
# if defined(__GNUC__) && !defined(__APPLE_ALTIVEC__)
# define __APPLE_ALTIVEC__
# endif
+# define vector __vector
# include <altivec.h>
# endif