summaryrefslogtreecommitdiff
path: root/tools/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/util.h')
-rw-r--r--tools/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/util.h b/tools/util.h
index 4ec3f91..2fed617 100644
--- a/tools/util.h
+++ b/tools/util.h
@@ -63,6 +63,15 @@
__AUDIT_ARCH_CONVENTION_MIPS64_N32)
#endif
+#ifndef AUDIT_ARCH_AARCH64
+/* AArch64 support for audit was merged in 3.17-rc1 */
+#define AUDIT_ARCH_AARCH64 (EM_AARCH64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
+#endif
+
+#ifndef AUDIT_ARCH_PPC64LE
+#define AUDIT_ARCH_PPC64LE (EM_PPC64|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE)
+#endif
+
extern uint32_t arch;
void exit_usage(const char *program);