void-packages/srcpkgs/openbsd-file/patches/no-x86-seccomp.patch

22 lines
826 B
Diff

--- a/seccomp-sandbox.c 2020-01-30 15:59:29.517540311 +0100
+++ b/seccomp-sandbox.c 2020-01-30 16:03:43.046273793 +0100
@@ -40,6 +40,18 @@
#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_I386
#elif defined __x86_64__ || defined __amd64__
#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_X86_64
+#elif defined __aarch64__
+#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_AARCH64
+#elif defined __arm__
+#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARM
+#elif defined __powerpc64__ && defined __LITTLE_ENDIAN__
+#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64LE
+#elif defined __powerpc64__
+#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC64
+#elif defined __powerpc__
+#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_PPC
+#elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64
+#define SECCOMP_AUDIT_ARCH AUDIT_ARCH_RISCV64
#endif
#endif /* SECCOMP_AUDIT_ARCH */