nss: fix build on altivec-but-no-vsx setups

This commit is contained in:
q66 2019-12-15 18:00:11 +01:00
parent d83fc54fb0
commit 43e12f9518

View file

@ -0,0 +1,14 @@
The header contains vectors of long long, which are only available with the
VSX instruction set. We don't compile with VSX on big endian systems.
--- nss/lib/freebl/gcm.h
+++ nss/lib/freebl/gcm.h
@@ -30,7 +30,7 @@
#include <arm_neon.h>
#endif
-#ifdef __powerpc64__
+#if defined(__powerpc64__) && defined(__VSX__)
#include "altivec-types.h"
/* The ghash freebl test tries to use this in C++, and gcc defines conflict. */