From: Dmitry V. Levin Date: Tue, 25 Aug 2015 21:56:02 +0000 (+0000) Subject: Fix build on systems that lack EM_ARM/EM_OPENRISC definitions X-Git-Tag: v4.11~257 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69c1570d556467f04580e6c369d93f9d6f7b5f9b;p=strace Fix build on systems that lack EM_ARM/EM_OPENRISC definitions * xlat/audit_arch.in: Guard AUDIT_ARCH_ARM and AUDIT_ARCH_ARMEB with EM_ARM check. Guard AUDIT_ARCH_OPENRISC with EM_OPENRISC check. --- diff --git a/xlat/audit_arch.in b/xlat/audit_arch.in index aa9ccdbb..e453e659 100644 --- a/xlat/audit_arch.in +++ b/xlat/audit_arch.in @@ -1,14 +1,16 @@ +/* linux used to have linux/elf-em.h out of sync with linux/audit.h */ AUDIT_ARCH_AARCH64 AUDIT_ARCH_ALPHA +#ifdef EM_ARM AUDIT_ARCH_ARM AUDIT_ARCH_ARMEB +#endif AUDIT_ARCH_CRIS AUDIT_ARCH_FRV AUDIT_ARCH_I386 AUDIT_ARCH_IA64 AUDIT_ARCH_M32R AUDIT_ARCH_M68K -/* Linux had broken linux/elf-em.h for a while. */ #ifdef EM_MICROBLAZE AUDIT_ARCH_MICROBLAZE #endif @@ -18,7 +20,9 @@ AUDIT_ARCH_MIPS64N32 AUDIT_ARCH_MIPSEL AUDIT_ARCH_MIPSEL64 AUDIT_ARCH_MIPSEL64N32 +#ifdef EM_OPENRISC AUDIT_ARCH_OPENRISC +#endif AUDIT_ARCH_PARISC AUDIT_ARCH_PARISC64 AUDIT_ARCH_PPC