enosys: add support for sparc

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
This commit is contained in:
Thomas Weißschuh 2023-05-22 17:21:26 +02:00
parent f65c49002f
commit 88f76e37a2

View file

@ -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))