diff options
author | Daniel Díaz <daniel.diaz@linaro.org> | 2018-06-05 17:23:13 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-07 08:52:55 +0100 |
commit | 6c19e22c1306ae4a5a20ea7a27d5de77388e9a60 (patch) | |
tree | e7b6ada9c18a1d9aee4fab490114ee324fbde4c1 /meta/recipes-extended/ltp/ltp/0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch | |
parent | e14171cc594e8c3dfee8119847c26e10b15bacf4 (diff) | |
download | poky-6c19e22c1306ae4a5a20ea7a27d5de77388e9a60.tar.gz |
ltp: bump to release 20180515
The following patches have made it to upstream:
* 0001-configure-Fix-default-value-of-without-numa-switch-i.patch
* 0001-configure-add-knob-to-control-numa-support.patch
* 0003-Add-knob-to-control-tirpc-support.patch
* 0010-replace-__BEGIN_DECLS-and-__END_DECLS.patch
* 0040-safe_macros-make-is_fuse-return-zero-if-fs_type-is-N.patch
These patches have been refreshed in order to apply cleanly
and without any fuzz:
* 0004-build-Add-option-to-select-libc-implementation.patch
* 0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch
* 0021-Define-_GNU_SOURCE-for-MREMAP_MAYMOVE-definition.patch
* 0028-rt_sigaction.h-Use-sighandler_t-instead-of-__sighand.patch
* 0036-testcases-network-nfsv4-acl-acl1.c-Security-fix-on-s.patch
This next patch was added to the set of patches that make LTP
build with musl:
* 0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch
(From OE-Core rev: 331b08516b9b15b9d50d6cade3c9a676bdcefef2)
Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch b/meta/recipes-extended/ltp/ltp/0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch new file mode 100644 index 0000000000..0245a89f3d --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 23518508de307790231d16af307291f1b45e903a Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Daniel=20D=C3=ADaz?= <daniel.diaz@linaro.org> | ||
3 | Date: Tue, 5 Jun 2018 15:36:30 -0500 | ||
4 | Subject: [PATCH] read_all: Define FNM_EXTMATCH if not already (like under | ||
5 | musl). | ||
6 | MIME-Version: 1.0 | ||
7 | Content-Type: text/plain; charset=UTF-8 | ||
8 | Content-Transfer-Encoding: 8bit | ||
9 | |||
10 | With musl, FNM_EXTMATCH is not defined: | ||
11 | | read_all.c: In function 'read_test': | ||
12 | | read_all.c:201:41: error: 'FNM_EXTMATCH' undeclared (first use in this function); did you mean 'FNM_NOMATCH'? | ||
13 | | if (exclude && !fnmatch(exclude, path, FNM_EXTMATCH)) { | ||
14 | | ^~~~~~~~~~~~ | ||
15 | | FNM_NOMATCH | ||
16 | | read_all.c:201:41: note: each undeclared identifier is reported only once for each function it appears in | ||
17 | | <builtin>: recipe for target 'read_all' failed | ||
18 | | make[4]: *** [read_all] Error 1 | ||
19 | |||
20 | Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org> | ||
21 | |||
22 | Upstream-Status: Pending | ||
23 | --- | ||
24 | testcases/kernel/fs/read_all/read_all.c | 4 ++++ | ||
25 | 1 file changed, 4 insertions(+) | ||
26 | |||
27 | diff --git a/testcases/kernel/fs/read_all/read_all.c b/testcases/kernel/fs/read_all/read_all.c | ||
28 | index a8e1611..e9ff47a 100644 | ||
29 | --- a/testcases/kernel/fs/read_all/read_all.c | ||
30 | +++ b/testcases/kernel/fs/read_all/read_all.c | ||
31 | @@ -59,6 +59,10 @@ | ||
32 | #define MAX_PATH 4096 | ||
33 | #define MAX_DISPLAY 40 | ||
34 | |||
35 | +#if !defined(FNM_EXTMATCH) | ||
36 | +#define FNM_EXTMATCH 0 | ||
37 | +#endif | ||
38 | + | ||
39 | struct queue { | ||
40 | sem_t sem; | ||
41 | int front; | ||
42 | -- | ||
43 | 2.7.4 | ||
44 | |||