diff options
author | Kirill A. Shutemov <k.shutemov@gmail.com> | 2008-02-07 03:15:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-07 11:42:30 -0500 |
commit | ed7b1889da256977574663689b598d88950bbd23 (patch) | |
tree | bdbf8d12826dece7ec4ccb4edcb18cd66dc842a0 /include/linux/a.out.h | |
parent | 6cc931b9b5ec652c90b928f3ec2163f261552c91 (diff) |
Unexport asm/page.h
Do not export asm/page.h during make headers_install. This removes PAGE_SIZE
from userspace headers.
Signed-off-by: Kirill A. Shutemov <k.shutemov@gmail.com>
Reviewed-by: David Woodhouse <dwmw2@infradead.org>
Cc: David Howells <dhowells@redhat.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/a.out.h')
-rw-r--r-- | include/linux/a.out.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/a.out.h b/include/linux/a.out.h index f913cc3e1b0..82cd918f2ab 100644 --- a/include/linux/a.out.h +++ b/include/linux/a.out.h | |||
@@ -128,12 +128,20 @@ enum machine_type { | |||
128 | #endif | 128 | #endif |
129 | 129 | ||
130 | #ifdef linux | 130 | #ifdef linux |
131 | #ifdef __KERNEL__ | ||
131 | #include <asm/page.h> | 132 | #include <asm/page.h> |
133 | #else | ||
134 | #include <unistd.h> | ||
135 | #endif | ||
132 | #if defined(__i386__) || defined(__mc68000__) | 136 | #if defined(__i386__) || defined(__mc68000__) |
133 | #define SEGMENT_SIZE 1024 | 137 | #define SEGMENT_SIZE 1024 |
134 | #else | 138 | #else |
135 | #ifndef SEGMENT_SIZE | 139 | #ifndef SEGMENT_SIZE |
140 | #ifdef __KERNEL__ | ||
136 | #define SEGMENT_SIZE PAGE_SIZE | 141 | #define SEGMENT_SIZE PAGE_SIZE |
142 | #else | ||
143 | #define SEGMENT_SIZE getpagesize() | ||
144 | #endif | ||
137 | #endif | 145 | #endif |
138 | #endif | 146 | #endif |
139 | #endif | 147 | #endif |