summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-03-16 20:33:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-22 11:35:20 +0000
commit938d077ca535ce3731bdbeed73a88118c957c289 (patch)
treeef50a3642c59ef193d9ca9576b9242b0285be013 /meta/recipes-extended
parent87c2bef1b98a1027017236ce495fc7fbecd02111 (diff)
downloadpoky-938d077ca535ce3731bdbeed73a88118c957c289.tar.gz
ltp: Fix __sighandler_t for mips
mips definition of kernel_sigaction was added later and the patch did not apply to mips part which ended in ltp failing to compile on mips parts In file included from rt_sigaction01.c:42:0: ../../../../include/lapi/rt_sigaction.h:39:2: error: unknown type name '__sighandler_t' __sighandler_t k_sa_handler; ^~~~~~~~~~~~~~ (From OE-Core rev: 74f4dcfd447fb528ab230e67e3f7ab37e8f93898) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch31
1 files changed, 17 insertions, 14 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch b/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch
index fc82ff9239..b26aa133e9 100644
--- a/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch
+++ b/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch
@@ -13,23 +13,29 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
13 testcases/kernel/syscalls/rt_sigsuspend/Makefile | 3 +++ 13 testcases/kernel/syscalls/rt_sigsuspend/Makefile | 3 +++
14 2 files changed, 4 insertions(+), 1 deletion(-) 14 2 files changed, 4 insertions(+), 1 deletion(-)
15 15
16diff --git a/include/lapi/rt_sigaction.h b/include/lapi/rt_sigaction.h 16Index: git/include/lapi/rt_sigaction.h
17index 3a5a763..870918c 100644 17===================================================================
18--- a/include/lapi/rt_sigaction.h 18--- git.orig/include/lapi/rt_sigaction.h
19+++ b/include/lapi/rt_sigaction.h 19+++ git/include/lapi/rt_sigaction.h
20@@ -34,7 +34,7 @@ 20@@ -36,12 +36,12 @@
21 #define INVAL_SA_PTR ((void *)-1) 21 #if defined(__mips__)
22 22 struct kernel_sigaction {
23 unsigned int sa_flags;
24- __sighandler_t k_sa_handler;
25+ sighandler_t k_sa_handler;
26 sigset_t sa_mask;
27 };
28 #else
23 struct kernel_sigaction { 29 struct kernel_sigaction {
24- __sighandler_t k_sa_handler; 30- __sighandler_t k_sa_handler;
25+ sighandler_t k_sa_handler; 31+ sighandler_t k_sa_handler;
26 unsigned long sa_flags; 32 unsigned long sa_flags;
27 void (*sa_restorer) (void); 33 void (*sa_restorer) (void);
28 sigset_t sa_mask; 34 sigset_t sa_mask;
29diff --git a/testcases/kernel/syscalls/rt_sigsuspend/Makefile b/testcases/kernel/syscalls/rt_sigsuspend/Makefile 35Index: git/testcases/kernel/syscalls/rt_sigsuspend/Makefile
30index 37bc3a9..2ca7f7c 100644 36===================================================================
31--- a/testcases/kernel/syscalls/rt_sigsuspend/Makefile 37--- git.orig/testcases/kernel/syscalls/rt_sigsuspend/Makefile
32+++ b/testcases/kernel/syscalls/rt_sigsuspend/Makefile 38+++ git/testcases/kernel/syscalls/rt_sigsuspend/Makefile
33@@ -19,4 +19,7 @@ 39@@ -19,4 +19,7 @@
34 top_srcdir ?= ../../../.. 40 top_srcdir ?= ../../../..
35 41
@@ -38,6 +44,3 @@ index 37bc3a9..2ca7f7c 100644
38+CFLAGS += -D_GNU_SOURCE 44+CFLAGS += -D_GNU_SOURCE
39+ 45+
40 include $(top_srcdir)/include/mk/generic_leaf_target.mk 46 include $(top_srcdir)/include/mk/generic_leaf_target.mk
41--
422.7.0
43