[PATCH] Remove "#ifdef linux" from linux/a.out.h

From: Joseph S. Myers
Date: Tue Oct 11 2011 - 10:57:49 EST


The <linux/a.out.h> header contains "#ifdef linux". GCC's fixincludes
then creates its own copy of the installed header with this changed to
"#ifdef __linux__". There should be no need for "#ifdef linux" in
Linux kernel headers, so this patch removes the conditional.

Signed-off-by: Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
---
Previous submission: http://lkml.org/lkml/2006/10/6/201
--- linux-3.0/include/linux/a.out.h.orig 2011-08-04 21:59:21.000000000 -0700
+++ linux-3.0/include/linux/a.out.h 2011-10-11 07:21:33.775483226 -0700
@@ -129,7 +129,6 @@ enum machine_type {
#define SEGMENT_SIZE PAGE_SIZE
#endif

-#ifdef linux
#ifdef __KERNEL__
#include <asm/page.h>
#else
@@ -146,7 +145,6 @@ enum machine_type {
#endif
#endif
#endif
-#endif

#define _N_SEGMENT_ROUND(x) ALIGN(x, SEGMENT_SIZE)


--
Joseph S. Myers
joseph@xxxxxxxxxxxxxxxx
--
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/