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>
Fri, 5 Jan 2024 14:25:05 +0000 (15:25 +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 db145609bda7994125f1903e4e9908091de76694..679964f2408c47a1de20ca37c2594f976fc9513d 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