Skip to contentSkip to conversation

Fix build on hppa

PATCH Applied John David Anglin 2 participants 2 messages Aug 7, 2023 – Aug 9, 2023 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build on hppa

The following patch fixes the definition of SECCOMP_ARCH_NATIVE on hppa.

---

include/audit-arch.h renamed from include/audit-arch.h.save +6 -0
@@ -57,6 +57,12 @@
 #    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
maintainer Applied
#1 lore raw

include/audit-arch.h

Quoted 2 lines · John David Anglin
include/audit-arch.h renamed from include/audit-arch.h.save +0 -0

Applied, thanks.

Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com