blob: 1f618932ea589096c68bfb1f7fd5ea1d17b225ff [file] [log] [blame]
Andrew Geissler706d5aa2021-02-12 15:55:30 -06001From 7c440cfc53aa52c9dc91c3a8c105bcf314c53af6 Mon Sep 17 00:00:00 2001
Brad Bishop19323692019-04-05 15:28:33 -04002From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 15:00:06 +0800
Andrew Geissler706d5aa2021-02-12 15:55:30 -06004Subject: [PATCH] add missing FTW_ macros for musl
Brad Bishop19323692019-04-05 15:28:33 -04005
6This is to avoid build failures like below for musl.
7
8 locale-util.c:296:24: error: 'FTW_STOP' undeclared
9
10Upstream-Status: Inappropriate [musl specific]
11
12Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Andrew Geissler706d5aa2021-02-12 15:55:30 -060013
Brad Bishop19323692019-04-05 15:28:33 -040014---
15 src/basic/missing_type.h | 20 ++++++++++++++++++++
16 1 file changed, 20 insertions(+)
17
18diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h
Andrew Geissler706d5aa2021-02-12 15:55:30 -060019index c487e65e7bde..23602ebbd533 100644
Brad Bishop19323692019-04-05 15:28:33 -040020--- a/src/basic/missing_type.h
21+++ b/src/basic/missing_type.h
22@@ -19,3 +19,23 @@ typedef int (*comparison_fn_t)(const void *, const void *);
23 #define __COMPAR_FN_T
24 typedef int (*__compar_fn_t)(const void *, const void *);
25 #endif
26+
27+#ifndef FTW_ACTIONRETVAL
28+#define FTW_ACTIONRETVAL 16
29+#endif
30+
31+#ifndef FTW_CONTINUE
32+#define FTW_CONTINUE 0
33+#endif
34+
35+#ifndef FTW_STOP
36+#define FTW_STOP 1
37+#endif
38+
39+#ifndef FTW_SKIP_SUBTREE
40+#define FTW_SKIP_SUBTREE 2
41+#endif
42+
43+#ifndef FTW_SKIP_SIBLINGS
44+#define FTW_SKIP_SIBLINGS 3
45+#endif