lkml.org 
[lkml]   [2006]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Remove "#ifdef linux" from linux/a.out.h
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. With
this patch, fixincludes (from GCC 4.1) makes no changes to the headers
installed by "make headers_install" on MIPS (I haven't tested on other
architectures).

Signed-off-by: Joseph Myers <joseph@codesourcery.com>
---
Index: include/linux/a.out.h
===================================================================
--- include/linux/a.out.h
+++ include/linux/a.out.h
@@ -127,7 +127,6 @@
#define SEGMENT_SIZE PAGE_SIZE
#endif

-#ifdef linux
#include <asm/page.h>
#if defined(__i386__) || defined(__mc68000__)
#define SEGMENT_SIZE 1024
@@ -136,7 +135,6 @@
#define SEGMENT_SIZE PAGE_SIZE
#endif
#endif
-#endif

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



--
Joseph S. Myers
joseph@codesourcery.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-06 19:17    [W:0.024 / U:0.556 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site