]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/asm-powerpc/elf.h
asm-powerpc: header included twice
[net-next-2.6.git] / include / asm-powerpc / elf.h
index 3dcd65edf97805daf4f496fc4ecaf83f3cfe81f1..45f2af6f89c47a209ac17d3207901b6260c404ee 100644 (file)
@@ -1,7 +1,10 @@
 #ifndef _ASM_POWERPC_ELF_H
 #define _ASM_POWERPC_ELF_H
 
+#ifdef __KERNEL__
 #include <linux/sched.h>       /* for task_struct */
+#endif
+
 #include <asm/types.h>
 #include <asm/ptrace.h>
 #include <asm/cputable.h>
@@ -89,7 +92,6 @@
  * as published by the Free Software Foundation; either version
  * 2 of the License, or (at your option) any later version.
  */
-#include <asm/ptrace.h>
 
 #define ELF_NGREG      48      /* includes nip, msr, lr, etc. */
 #define ELF_NFPREG     33      /* includes fpscr */