enosys: fix build on hppa
authorJohn David Anglin <dave@parisc-linux.org>
Mon, 7 Aug 2023 15:37:17 +0000 (15:37 +0000)
committerChris Hofstaedtler <zeha@debian.org>
Mon, 13 Nov 2023 11:48:34 +0000 (12:48 +0100)
The following patch fixes the definition of SECCOMP_ARCH_NATIVE
on hppa.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Gbp-Pq: Topic upstream
Gbp-Pq: Name enosys-fix-build-on-hppa.patch

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