From: Thomas Weißschuh Date: Tue, 23 May 2023 14:34:47 +0000 (+0200) Subject: enosys: add support for loongarch X-Git-Tag: v2.39.1~67 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2e3ac959510df1271eec41ce1a58b6d69ec77f5;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