]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
enosys: add support for loongarch
authorThomas Weißschuh <thomas@t-8ch.de>
Tue, 23 May 2023 14:34:47 +0000 (16:34 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 23 May 2023 15:24:01 +0000 (17:24 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
include/audit-arch.h

index 9760f2e83387fddfe7224ec679fbf170a868f169..63d9eb52c1f0c24a75a7fa2fa75a84a30f4e9aba 100644 (file)
 #    else
 #       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_SPARC64
 #    endif
+#elif __loongarch__
+#    if __SIZEOF_POINTER__ == 4
+#       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH32
+#    else
+#       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64
+#    endif
 #else
 #    error Unknown target architecture
 #endif