[PATCH] aout: depend on linux or __KERNEL__

From: Linus Walleij
Date: Fri Oct 28 2011 - 09:43:22 EST


As suggested by Torvalds the kernel build should only depend
on __KERNEL__ being set and not rely on compiler definitions
like "linux" or "__linux__".

Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxxxxxx>
---
include/linux/a.out.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/a.out.h b/include/linux/a.out.h
index e86dfca..45ea44a 100644
--- a/include/linux/a.out.h
+++ b/include/linux/a.out.h
@@ -129,7 +129,7 @@ enum machine_type {
#define SEGMENT_SIZE PAGE_SIZE
#endif

-#ifdef linux
+#if defined(linux) || defined(__KERNEL__)
#ifdef __KERNEL__
#include <asm/page.h>
#else
--
1.7.3.2

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/