diff options
Diffstat (limited to 'meta/recipes-kernel/linux-libc-headers/linux-libc-headers/ppc_glibc_build_fix.patch')
-rw-r--r-- | meta/recipes-kernel/linux-libc-headers/linux-libc-headers/ppc_glibc_build_fix.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/ppc_glibc_build_fix.patch b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/ppc_glibc_build_fix.patch new file mode 100644 index 0000000000..81fa5ce8c9 --- /dev/null +++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers/ppc_glibc_build_fix.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | stdint.h has C definitions which troubles assembler. and if asm/ptrace.h | ||
2 | is included in assembler context, then it should not include the | ||
3 | C-specific stdint.h file. | ||
4 | This was causing glibc building issue on ppc. | ||
5 | Looks like this issue is introduced on the 2.6.34 kernel. | ||
6 | |||
7 | 2010-06-024 | ||
8 | Signed-Off-By:Nitin A Kamble <nitin.a.kamble@intel.com> | ||
9 | Acked-By:Jeff Dike <jdike@linux.intel.com> | ||
10 | |||
11 | Index: linux-2.6.34/arch/powerpc/include/asm/ptrace.h | ||
12 | =================================================================== | ||
13 | --- linux-2.6.34.orig/arch/powerpc/include/asm/ptrace.h | ||
14 | +++ linux-2.6.34/arch/powerpc/include/asm/ptrace.h | ||
15 | @@ -27,8 +27,10 @@ | ||
16 | #ifdef __KERNEL__ | ||
17 | #include <linux/types.h> | ||
18 | #else | ||
19 | +#ifndef __ASSEMBLY__ | ||
20 | #include <stdint.h> | ||
21 | #endif | ||
22 | +#endif | ||
23 | |||
24 | #ifndef __ASSEMBLY__ | ||
25 | |||