From aca8b9786d42199fcf0f5bd5c6e699fe67c79659 Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 16 Jun 2008 10:24:46 +0200 Subject: [PATCH v2] export linux/a.out.h Export linux/a.out.h like we do for asm/a.out.h as some applications needs it (E.G. valgrind). One minor complication is that the content is protected by an CONFIG_ARCH_SUPPORTS_AOUT ifdef, so get rid of it. Signed-off-by: Peter Korsgaard --- include/linux/Kbuild | 3 +++ include/linux/a.out.h | 8 -------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/include/linux/Kbuild b/include/linux/Kbuild index 93b9885..e61f1f9 100644 --- a/include/linux/Kbuild +++ b/include/linux/Kbuild @@ -162,6 +162,9 @@ header-y += video_encoder.h header-y += videotext.h header-y += x25.h +ifeq ($(wildcard include/asm-$(SRCARCH)/a.out.h),include/asm-$(SRCARCH)/a.out.h) +unifdef-y += a.out.h +endif unifdef-y += acct.h unifdef-y += adb.h unifdef-y += adfs_fs.h diff --git a/include/linux/a.out.h b/include/linux/a.out.h index 208f4e8..e86dfca 100644 --- a/include/linux/a.out.h +++ b/include/linux/a.out.h @@ -1,8 +1,6 @@ #ifndef __A_OUT_GNU_H__ #define __A_OUT_GNU_H__ -#ifdef CONFIG_ARCH_SUPPORTS_AOUT - #define __GNU_EXEC_MACROS__ #ifndef __STRUCT_EXEC_OVERRIDE__ @@ -277,10 +275,4 @@ struct relocation_info #endif /* no N_RELOCATION_INFO_DECLARED. */ #endif /*__ASSEMBLY__ */ -#else /* CONFIG_ARCH_SUPPORTS_AOUT */ -#ifndef __ASSEMBLY__ -struct exec { -}; -#endif -#endif /* CONFIG_ARCH_SUPPORTS_AOUT */ #endif /* __A_OUT_GNU_H__ */ -- 1.5.5.1