]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
enosys: fix build on hppa
authorJohn David Anglin <dave@parisc-linux.org>
Mon, 7 Aug 2023 15:37:17 +0000 (15:37 +0000)
committerKarel Zak <kzak@redhat.com>
Wed, 9 Aug 2023 10:35:35 +0000 (12:35 +0200)
The following patch fixes the definition of SECCOMP_ARCH_NATIVE
on hppa.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
include/audit-arch.h

index 63d9eb52c1f0c24a75a7fa2fa75a84a30f4e9aba..f1354eec5d9761c98960ee06da752f00d877568e 100644 (file)
 #    else
 #       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64
 #    endif
+#elif __hppa__
+#    if __SIZEOF_POINTER__ == 4
+#       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC
+#    else
+#       define SECCOMP_ARCH_NATIVE AUDIT_ARCH_PARISC64
+#    endif
 #else
 #    error Unknown target architecture
 #endif