From c31bb934cd30050a23f7ad7a648ad29e6cd0ae5d Mon Sep 17 00:00:00 2001 From: Low-power Date: Thu, 16 Mar 2023 01:44:28 +0800 Subject: [PATCH] Fix building for powerpc* targets with some compilers Under some configurations, GCC didn't predefined macro 'powerpc' for such a target. Use the guaranteed macro '__powerpc__' instead. Reviewed-by: Tino Reichardt Reviewed-by: Brian Behlendorf Signed-off-by: WHR Closes #14631 --- lib/libspl/include/sys/simd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libspl/include/sys/simd.h b/lib/libspl/include/sys/simd.h index 7b06ddf583..a106967d07 100644 --- a/lib/libspl/include/sys/simd.h +++ b/lib/libspl/include/sys/simd.h @@ -31,7 +31,7 @@ #include /* including clashes with AT_UID and others */ -#if defined(__arm__) || defined(__aarch64__) || defined(powerpc) +#if defined(__arm__) || defined(__aarch64__) || defined(__powerpc__) #if defined(__FreeBSD__) #define AT_HWCAP 25 #define AT_HWCAP2 26