summaryrefslogtreecommitdiff
path: root/tools/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/util.c')
-rw-r--r--tools/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/util.c b/tools/util.c
index 266e027..6c44d35 100644
--- a/tools/util.c
+++ b/tools/util.c
@@ -62,10 +62,10 @@
#elif __MIPSEL__
#define ARCH_NATIVE AUDIT_ARCH_MIPSEL64N32
#endif /* _MIPS_SIM_NABI32 */
+#elif __s390x__ /* s390x must be checked before s390 */
+#define ARCH_NATIVE AUDIT_ARCH_S390X
#elif __s390__
#define ARCH_NATIVE AUDIT_ARCH_S390
-#elif __s390x__
-#define ARCH_NATIVE AUDIT_ARCH_S390X
#else
#error the simulator code needs to know about your machine type
#endif