diff options
Diffstat (limited to 'debian/patches/upstream/enosys-fix-build-on-hppa.patch')
-rw-r--r-- | debian/patches/upstream/enosys-fix-build-on-hppa.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/upstream/enosys-fix-build-on-hppa.patch b/debian/patches/upstream/enosys-fix-build-on-hppa.patch new file mode 100644 index 0000000..a4739f5 --- /dev/null +++ b/debian/patches/upstream/enosys-fix-build-on-hppa.patch @@ -0,0 +1,29 @@ +From: John David Anglin <dave@parisc-linux.org> +Date: Mon, 7 Aug 2023 15:37:17 +0000 +Subject: enosys: fix build on hppa + +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 | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/include/audit-arch.h b/include/audit-arch.h +index db14560..679964f 100644 +--- a/include/audit-arch.h ++++ b/include/audit-arch.h +@@ -59,6 +59,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 |