summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2023-02-25 01:49:07 +0800
committerPaul Moore <paul@paul-moore.com>2023-03-31 14:35:55 -0400
commit49a382ddb48baf8496cf15bd2b491c83ac1f8039 (patch)
tree6e68d9cca81a4a3b51f6349f3a6a2b0840f3f769 /src
parentd5f77038335d523da509e0c246da8be794c511b7 (diff)
downloadlibseccomp-49a382ddb48baf8496cf15bd2b491c83ac1f8039.tar.gz
arch,tools: change macros used to detect LoongArch64 to __loongarch_lp64
According to the LoongArch Toolchain Conventions [1], `__loongarch64` is already deprecated for a while. What we care about here is the ABI data model, so change the `__loongarch64` to `__loongarch_lp64` instead. [1]: https://loongson.github.io/LoongArch-Documentation/LoongArch-toolchain-conventions-EN.html Signed-off-by: WANG Xuerui <git@xen0n.name> Acked-by: Tom Hromatka <tom.hromatka@oracle.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch.c b/src/arch.c
index 8c45fa3..50a2321 100644
--- a/src/arch.c
+++ b/src/arch.c
@@ -64,7 +64,7 @@ const struct arch_def *arch_def_native = &arch_def_x86_64;
const struct arch_def *arch_def_native = &arch_def_arm;
#elif __aarch64__
const struct arch_def *arch_def_native = &arch_def_aarch64;
-#elif __loongarch64
+#elif __loongarch_lp64
const struct arch_def *arch_def_native = &arch_def_loongarch64;
#elif __mips__ && _MIPS_SIM == _MIPS_SIM_ABI32
#if __MIPSEB__