summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch
diff options
context:
space:
mode:
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.patch44
1 files changed, 0 insertions, 44 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
deleted file mode 100644
index 0245a89f3d..0000000000
--- a/meta/recipes-extended/ltp/ltp/0040-read_all-Define-FNM_EXTMATCH-if-not-already-like-und.patch
+++ /dev/null
@@ -1,44 +0,0 @@
1From 23518508de307790231d16af307291f1b45e903a Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Daniel=20D=C3=ADaz?= <daniel.diaz@linaro.org>
3Date: Tue, 5 Jun 2018 15:36:30 -0500
4Subject: [PATCH] read_all: Define FNM_EXTMATCH if not already (like under
5 musl).
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10With 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
20Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
21
22Upstream-Status: Pending
23---
24 testcases/kernel/fs/read_all/read_all.c | 4 ++++
25 1 file changed, 4 insertions(+)
26
27diff --git a/testcases/kernel/fs/read_all/read_all.c b/testcases/kernel/fs/read_all/read_all.c
28index 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--
432.7.4
44