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

20 lines
708 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,16 @@
#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
#endif
#endif /* SECCOMP_AUDIT_ARCH */