aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libspl/include/sys
diff options
context:
space:
mode:
authorLow-power <[email protected]>2023-03-16 01:44:28 +0800
committerGitHub <[email protected]>2023-03-15 10:44:28 -0700
commitc31bb934cd30050a23f7ad7a648ad29e6cd0ae5d (patch)
tree065f491537cae6b75b124ea68ddc3fc3c6c40908 /lib/libspl/include/sys
parentb7bc334d135189354a39e099a7cb3ab7776a5b60 (diff)
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 <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: WHR <[email protected]> Closes #14631
Diffstat (limited to 'lib/libspl/include/sys')
-rw-r--r--lib/libspl/include/sys/simd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libspl/include/sys/simd.h b/lib/libspl/include/sys/simd.h
index 7b06ddf58..a106967d0 100644
--- a/lib/libspl/include/sys/simd.h
+++ b/lib/libspl/include/sys/simd.h
@@ -31,7 +31,7 @@
#include <sys/types.h>
/* including <sys/auxv.h> 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