aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthew Macy <[email protected]>2020-07-25 11:00:23 -0700
committerGitHub <[email protected]>2020-07-25 11:00:23 -0700
commitf5b189f9379b092600293ac3e7a670bf2087d88c (patch)
tree303d187727bf643c8e0ec91a937c76a6f33c5dcd /lib
parentd364de7a89dc339aad1bc20d429dc670e61dc1ff (diff)
FreeBSD: Fixes required to build ZFS on PowerPC
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Matt Macy <[email protected]> Closes #10622
Diffstat (limited to 'lib')
-rw-r--r--lib/libspl/include/sys/simd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libspl/include/sys/simd.h b/lib/libspl/include/sys/simd.h
index 844abe5c6..dceedb698 100644
--- a/lib/libspl/include/sys/simd.h
+++ b/lib/libspl/include/sys/simd.h
@@ -464,7 +464,7 @@ zfs_avx512vbmi_available(void)
#include <signal.h>
#include <setjmp.h>
-#ifdef __ALTIVEC__
+#if defined(__ALTIVEC__) && !defined(__FreeBSD__)
static jmp_buf env;
static void sigillhandler(int x)
{
@@ -476,7 +476,7 @@ static inline boolean_t
zfs_altivec_available(void)
{
boolean_t has_altivec = B_FALSE;
-#ifdef __ALTIVEC__
+#if defined(__ALTIVEC__) && !defined(__FreeBSD__)
sighandler_t savesig;
savesig = signal(SIGILL, sigillhandler);
if (setjmp(env)) {