diff options
author | Jan Willeke <willeke@linux.vnet.ibm.com> | 2015-07-13 15:15:39 +0200 |
---|---|---|
committer | Paul Moore <pmoore@redhat.com> | 2015-07-13 10:29:54 -0400 |
commit | d7ba987a20581f324a5197154db694c1fe46429f (patch) | |
tree | c04b2e0b57fec59409b78986dedd5849e2d0ec43 /src | |
parent | c5d3e1d692710cca958ea218660c1877245fce67 (diff) | |
download | libseccomp-d7ba987a20581f324a5197154db694c1fe46429f.tar.gz |
s390x: fix plattform detection
Because on S390x both __s390x__ and __s390__ are defined, the check
of __s390x__ must be before __s390__.
Signed-off-by: Jan Willeke <willeke@linux.vnet.ibm.com>
[PM: subject tweaks]
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/arch.c | 4 |
1 files changed, 2 insertions, 2 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 */ |