]> 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>
Tue, 23 May 2023 14:35:14 +0000 (16:35 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
misc-utils/enosys.c

index 02978c20aa7e1dcf6f233d7b16ebaa7442e0b3de..7372f29c6670fdc8d71e074dd68b49628bedea88 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
 #else
 #    error Unknown target architecture
 #endif