From 88f76e37a215b2cfa4930d673b24fe00ea9f64d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Mon, 22 May 2023 17:21:26 +0200 Subject: [PATCH] enosys: add support for sparc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Weißschuh --- tests/helpers/test_enosys.c | 6 ++++++ 1 file changed, 6 insertions(+) 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)) -- 2.47.3