[PATCH] __KERNEL__ guard for linux/sched.h
Michal Ostrowski
mostrows at watson.ibm.com
Fri Dec 30 03:49:55 EST 2005
Including linux/sched.h must be done within #ifdef __KERNEL__.
Failure to do so results in inability to build user-space apps with
these headers; failures occur in including <signal.h> , which requires
<asm/sigcontext.h>.
Signed-off-by: Michal Ostrowski <mostrows at watson.ibm.com>
---
include/asm-powerpc/elf.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
197d7542f54d97ff77cbfb2714b7d954cb0615aa
diff --git a/include/asm-powerpc/elf.h b/include/asm-powerpc/elf.h
index 3dcd65e..adb5cec 100644
--- a/include/asm-powerpc/elf.h
+++ b/include/asm-powerpc/elf.h
@@ -1,7 +1,6 @@
#ifndef _ASM_POWERPC_ELF_H
#define _ASM_POWERPC_ELF_H
-#include <linux/sched.h> /* for task_struct */
#include <asm/types.h>
#include <asm/ptrace.h>
#include <asm/cputable.h>
@@ -175,6 +174,7 @@ typedef elf_vrreg_t elf_vrregset_t32[ELF
#define ELF_ET_DYN_BASE (0x08000000)
#ifdef __KERNEL__
+#include <linux/sched.h> /* for task_struct */
/* Common routine for both 32-bit and 64-bit processes */
static inline void ppc_elf_core_copy_regs(elf_gregset_t elf_regs,
--
0.99.9.GIT
More information about the Linuxppc64-dev
mailing list