aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/klibc/klibc-1.5.22/arm-signal-cleanup.patch
blob: a2a94a39899195abb9c48ce3c091abb39f35a0dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Patch was imported from the OpenEmbedded git server
(git://git.openembedded.org/openembedded)
as of commit id 6f36bd6e28bce49b72e5a3cff77e0c74b8f65e41

klibc-1.5.15: fix build against 2.6.31 linux headers
* apply patches from Ubuntu to build against 2.6.31 linux headers

Signed-off-by: Jeremy Lain? <jeremy.laine@m4x.org>

Modified as of commit id 9ea5e56d701a4841150b5c17cc229b5a714a8f47
Signed-off-by: Khem Raj <raj.khem.@gmail.com>

Minor edits following upstream changes
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>

Index: klibc-1.5.15/usr/include/arch/arm/klibc/archsignal.h
===================================================================
--- klibc-1.5.15.orig/usr/include/arch/arm/klibc/archsignal.h	2010-03-20 01:06:35.000000000 +0100
+++ klibc-1.5.15/usr/include/arch/arm/klibc/archsignal.h	2010-05-30 18:08:47.000000000 +0200
@@ -104,7 +104,12 @@
 #define MINSIGSTKSZ	2048
 #define SIGSTKSZ	8192
 
+#include <linux/version.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
 #include <asm-generic/signal-defs.h>
+#else
+#include <asm-generic/signal.h>
+#endif
 
 /* This uses gcc anonymous union support... */
 struct siginfo;