]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
enosys: fix native arch for s390x
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 7 May 2023 08:59:46 +0000 (10:59 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 16 May 2023 20:32:29 +0000 (22:32 +0200)
s390 also defines __s390__ so we first have to check for __s390x__.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/enosys.c

index 857b230520bf16525deef188c421a5d39801f52f..feb0bec299183d7966b1969db61ce4014098b7e0 100644 (file)
 #    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