From: Thomas Weißschuh Date: Mon, 22 May 2023 15:21:26 +0000 (+0200) Subject: enosys: add support for sparc X-Git-Tag: v2.39.1~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88f76e37a215b2cfa4930d673b24fe00ea9f64d9;p=thirdparty%2Futil-linux.git enosys: add support for sparc Signed-off-by: Thomas Weißschuh --- diff --git a/tests/helpers/test_enosys.c b/tests/helpers/test_enosys.c index fd147f9eda..4947f2f033 100644 --- a/tests/helpers/test_enosys.c +++ b/tests/helpers/test_enosys.c @@ -69,6 +69,12 @@ # else # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2 # endif +#elif __sparc__ +# if __SIZEOF_POINTER__ == 4 +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SPARC +# else +# define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SPARC64 +# endif #endif #define syscall_nr (offsetof(struct seccomp_data, nr))