ports/databases/memcached/files/patch-xxhash.h
Piotr Kubaj 43e895ad80 databases/memcached: fix build on powerpc64le
In file included from hash.c:7:
In file included from ./xxhash.h:2934:
/usr/lib/clang/11.0.1/include/altivec.h:55:19: error: unknown type name 'vector'
static __inline__ vector bool char __ATTRS_o_ai
                  ^
/usr/lib/clang/11.0.1/include/altivec.h:56:10: error: unknown type name 'vector'
vec_perm(vector bool char __a, vector bool char __b, vector unsigned char __c);
2021-09-20 09:42:00 +00:00

10 lines
302 B
C

--- xxhash.h.orig 2021-03-31 12:18:19 UTC
+++ 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