summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Moore <pmoore@redhat.com>2014-08-26 14:27:00 -0400
committerPaul Moore <pmoore@redhat.com>2014-08-26 14:27:00 -0400
commit9c6c5b326b1fb4aeca63dbfcfc52b5aa78490331 (patch)
tree8943443bcaf2829229a1c22a2d1bcc82481ee85d /tools
parentb2adeeeeb00a23ed70df7f500add469e46d25400 (diff)
downloadlibseccomp-9c6c5b326b1fb4aeca63dbfcfc52b5aa78490331.tar.gz
arch: ensure we have definitions for the MIPS N32 ABI
Signed-off-by: Paul Moore <pmoore@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/util.h b/tools/util.h
index 72c4cce..2903769 100644
--- a/tools/util.h
+++ b/tools/util.h
@@ -24,6 +24,18 @@
#include <inttypes.h>
+#ifndef AUDIT_ARCH_MIPS64N32
+/* MIPS64N32 support was merged in 3.15 */
+#define AUDIT_ARCH_MIPS64N32 (EM_MIPS|__AUDIT_ARCH_64BIT|\
+ __AUDIT_ARCH_CONVENTION_MIPS64_N32)
+#endif
+
+#ifndef AUDIT_ARCH_MIPSEL64N32
+/* MIPSEL64N32 support was merged in 3.15 */
+#define AUDIT_ARCH_MIPSEL64N32 (EM_MIPS|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE|\
+ __AUDIT_ARCH_CONVENTION_MIPS64_N32)
+#endif
+
extern uint32_t arch;
void exit_usage(const char *program);