]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
enosys: add support for sparc
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 22 May 2023 15:21:26 +0000 (17:21 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 1 Jun 2023 10:16:34 +0000 (12:16 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/helpers/test_enosys.c

index fd147f9edad78bcc13579e3be67e1e5bfb34c200..4947f2f033e45f227af3ee1ff0dac1e0ce81cc72 100644 (file)
 #    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))