From: Thomas Weißschuh Date: Sun, 7 May 2023 08:59:46 +0000 (+0200) Subject: enosys: fix native arch for s390x X-Git-Tag: v2.40-rc1~466^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=113356e95d2c9b05a26125c2a134ad75081611af;p=thirdparty%2Futil-linux.git enosys: fix native arch for s390x s390 also defines __s390__ so we first have to check for __s390x__. Signed-off-by: Thomas Weißschuh --- diff --git a/misc-utils/enosys.c b/misc-utils/enosys.c index 857b230520..feb0bec299 100644 --- a/misc-utils/enosys.c +++ b/misc-utils/enosys.c @@ -43,10 +43,10 @@ # elif __riscv_xlen == 64 # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_RISCV64 # endif -#elif __s390__ -# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_S390 #elif __s390x__ # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_S390X +#elif __s390__ +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_S390 #elif __PPC64__ # if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PPC64