diff options
-rw-r--r-- | src/arch.c | 4 | ||||
-rw-r--r-- | tools/util.c | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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 |