diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0001-add-_GNU_SOURCE-to-pec_listener.c.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0001-add-_GNU_SOURCE-to-pec_listener.c.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-add-_GNU_SOURCE-to-pec_listener.c.patch b/meta/recipes-extended/ltp/ltp/0001-add-_GNU_SOURCE-to-pec_listener.c.patch new file mode 100644 index 0000000000..7ec66f8147 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-add-_GNU_SOURCE-to-pec_listener.c.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From ae10245c15a617bd57337981bb42eb36629f9b59 Mon Sep 17 00:00:00 2001 | ||
2 | From: Dengke Du <dengke.du@windriver.com> | ||
3 | Date: Wed, 8 Feb 2017 15:53:31 +0800 | ||
4 | Subject: [PATCH 01/26] add _GNU_SOURCE to pec_listener.c | ||
5 | |||
6 | In previous patch 0007-replace-SIGCLD-with-SIGCHLD.patch made by Khem Raj | ||
7 | contains two aspects: | ||
8 | |||
9 | 1. replace SIGCLD with SIGCHLD | ||
10 | 2. add _GNU_SOURCE to pec_listener.c | ||
11 | |||
12 | The replace SIGCLD with SIGCHLD have been integrated upstream, so make a | ||
13 | another patch to add _GNU_SOURCE to pec_listener.c comply with Khem Raj's | ||
14 | previous patch. | ||
15 | |||
16 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
17 | Signed-off-by: Dengke Du <dengke.du@windriver.com> | ||
18 | Upstream-Status: Pending | ||
19 | |||
20 | %% original patch: 0001-add-_GNU_SOURCE-to-pec_listener.c.patch | ||
21 | --- | ||
22 | testcases/kernel/connectors/pec/pec_listener.c | 1 + | ||
23 | 1 file changed, 1 insertion(+) | ||
24 | |||
25 | diff --git a/testcases/kernel/connectors/pec/pec_listener.c b/testcases/kernel/connectors/pec/pec_listener.c | ||
26 | index d11e4dc..b8b5e0d 100644 | ||
27 | --- a/testcases/kernel/connectors/pec/pec_listener.c | ||
28 | +++ b/testcases/kernel/connectors/pec/pec_listener.c | ||
29 | @@ -20,6 +20,7 @@ | ||
30 | /* */ | ||
31 | /******************************************************************************/ | ||
32 | |||
33 | +#define _GNU_SOURCE | ||
34 | #include <sys/socket.h> | ||
35 | #include <sys/poll.h> | ||
36 | #include <sys/types.h> | ||
37 | -- | ||
38 | 2.8.1 | ||
39 | |||