Signed-off-by: Enze Li <lienze@xxxxxxxxxx> --- misc-utils/enosys.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc-utils/enosys.c b/misc-utils/enosys.c index 02978c20a..9facbcb53 100644 --- a/misc-utils/enosys.c +++ b/misc-utils/enosys.c @@ -70,6 +70,12 @@ # else # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2 # endif +#elif __loongarch__ +# if _LOONGARCH_SZPTR == 32 +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH32 +# elif _LOONGARCH_SZPTR == 64 +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64 +# endif #else # error Unknown target architecture #endif base-commit: fe0b1e793c9017edba72768e2e0b4c769c204604 -- 2.34.1