summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch.c4
-rw-r--r--tools/util.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/arch.c b/src/arch.c
index abd9f41..63bbe90 100644
--- a/src/arch.c
+++ b/src/arch.c
@@ -76,10 +76,10 @@ const struct arch_def *arch_def_native = &arch_def_mips64n32;
#elif __MIPSEL__
const struct arch_def *arch_def_native = &arch_def_mipsel64n32;
#endif /* _MIPS_SIM_NABI32 */
+#elif __s390x__ /* s390x must be checked before s390 */
+const struct arch_def *arch_def_native = &arch_def_s390x;
#elif __s390__
const struct arch_def *arch_def_native = &arch_def_s390;
-#elif __s390x__
-const struct arch_def *arch_def_native = &arch_def_s390x;
#else
#error the arch code needs to know about your machine type
#endif /* machine type guess */
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