aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/tlsdate/tlsdate-add-mips.patch
blob: 44b4cf962e743aadba4af3287c2784f1299db67d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/src/seccomp.c
+++ b/src/seccomp.c
@@ -60,6 +60,19 @@
 #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390
 #elif defined(__s390x__)
 #  define SECCOMP_AUDIT_ARCH AUDIT_ARCH_S390X
+#elif defined(__mips64)
+/* FIXME: add N32 support */
+#  ifdef __MIPSEL__
+#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPSEL64
+#  else
+#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPS64
+#  endif
+#elif defined(__mips)
+#  ifdef __MIPSEL__
+#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPSEL
+#  else
+#    define SECCOMP_AUDIT_ARCH AUDIT_ARCH_MIPS
+#  endif
 #else
 #  error "Platform does not support seccomp filter yet"
 #endif