From: Thomas Weißschuh Date: Tue, 23 May 2023 14:34:47 +0000 (+0200) Subject: enosys: add support for loongarch X-Git-Tag: v2.40-rc1~431^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c345a4002b56083469e320de76ae695006a2cf49;p=thirdparty%2Futil-linux.git enosys: add support for loongarch Signed-off-by: Thomas Weißschuh --- diff --git a/include/audit-arch.h b/include/audit-arch.h index 9760f2e833..63d9eb52c1 100644 --- a/include/audit-arch.h +++ b/include/audit-arch.h @@ -51,6 +51,12 @@ # else # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SPARC64 # endif +#elif __loongarch__ +# if __SIZEOF_POINTER__ == 4 +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH32 +# else +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 +# endif #else # error Unknown target architecture #endif