diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch | 48 |
1 files changed, 0 insertions, 48 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 deleted file mode 100644 index 40ee894143..0000000000 --- a/meta/recipes-extended/ltp/ltp/0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch +++ /dev/null | |||
@@ -1,48 +0,0 @@ | |||
1 | From 94557fb7e1293c61145c959b8c5ffecf4a2b1069 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 8 Jan 2016 07:24:44 +0000 | ||
4 | Subject: [PATCH 28/32] rt_sigaction.h: Use sighandler_t instead of | ||
5 | __sighandler_t | ||
6 | |||
7 | When _GNU_SOURCE is used then both typedefs are same and using | ||
8 | sighandler_t makes it work on musl too | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | --- | ||
14 | include/lapi/rt_sigaction.h | 4 ++-- | ||
15 | testcases/kernel/syscalls/rt_sigsuspend/Makefile | 3 +++ | ||
16 | 2 files changed, 5 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/include/lapi/rt_sigaction.h b/include/lapi/rt_sigaction.h | ||
19 | index 18236db..15facda 100644 | ||
20 | --- a/include/lapi/rt_sigaction.h | ||
21 | +++ b/include/lapi/rt_sigaction.h | ||
22 | @@ -36,12 +36,12 @@ | ||
23 | #if defined(__mips__) | ||
24 | struct kernel_sigaction { | ||
25 | unsigned int sa_flags; | ||
26 | - __sighandler_t k_sa_handler; | ||
27 | + sighandler_t k_sa_handler; | ||
28 | sigset_t sa_mask; | ||
29 | }; | ||
30 | #else | ||
31 | struct kernel_sigaction { | ||
32 | - __sighandler_t k_sa_handler; | ||
33 | + sighandler_t k_sa_handler; | ||
34 | unsigned long sa_flags; | ||
35 | void (*sa_restorer) (void); | ||
36 | sigset_t sa_mask; | ||
37 | diff --git a/testcases/kernel/syscalls/rt_sigsuspend/Makefile b/testcases/kernel/syscalls/rt_sigsuspend/Makefile | ||
38 | index 37bc3a9..2ca7f7c 100644 | ||
39 | --- a/testcases/kernel/syscalls/rt_sigsuspend/Makefile | ||
40 | +++ b/testcases/kernel/syscalls/rt_sigsuspend/Makefile | ||
41 | @@ -19,4 +19,7 @@ | ||
42 | top_srcdir ?= ../../../.. | ||
43 | |||
44 | include $(top_srcdir)/include/mk/testcases.mk | ||
45 | + | ||
46 | +CFLAGS += -D_GNU_SOURCE | ||
47 | + | ||
48 | include $(top_srcdir)/include/mk/generic_leaf_target.mk | ||