]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Fix building for powerpc* targets with some compilers
authorLow-power <msl0000023508@gmail.com>
Wed, 15 Mar 2023 17:44:28 +0000 (01:44 +0800)
committerGitHub <noreply@github.com>
Wed, 15 Mar 2023 17:44:28 +0000 (10:44 -0700)
Under some configurations, GCC didn't predefined macro 'powerpc' for
such a target. Use the guaranteed macro '__powerpc__' instead.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: WHR <msl0000023508@gmail.com>
Closes #14631

lib/libspl/include/sys/simd.h

index 7b06ddf5830593992330478eef5246ccef546518..a106967d0725c0819b2af7d54dc40e7beaea0e67 100644 (file)
@@ -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