Andrew Geissler | c723b72 | 2021-01-08 16:14:09 -0600 | [diff] [blame] | 1 | From 8caea3fe87d55fd16de7d1b8266239fa954cb498 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 2 | From: Chen Qi <Qi.Chen@windriver.com> |
| 3 | Date: Mon, 25 Feb 2019 15:00:06 +0800 |
Andrew Geissler | c723b72 | 2021-01-08 16:14:09 -0600 | [diff] [blame] | 4 | Subject: [PATCH 08/26] add missing FTW_ macros for musl |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 5 | |
| 6 | This is to avoid build failures like below for musl. |
| 7 | |
| 8 | locale-util.c:296:24: error: 'FTW_STOP' undeclared |
| 9 | |
| 10 | Upstream-Status: Inappropriate [musl specific] |
| 11 | |
| 12 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 13 | --- |
| 14 | src/basic/missing_type.h | 20 ++++++++++++++++++++ |
| 15 | 1 file changed, 20 insertions(+) |
| 16 | |
| 17 | diff --git a/src/basic/missing_type.h b/src/basic/missing_type.h |
Andrew Geissler | c723b72 | 2021-01-08 16:14:09 -0600 | [diff] [blame] | 18 | index aeaf6ad5ec..3df1084ef2 100644 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | --- a/src/basic/missing_type.h |
| 20 | +++ b/src/basic/missing_type.h |
| 21 | @@ -19,3 +19,23 @@ typedef int (*comparison_fn_t)(const void *, const void *); |
| 22 | #define __COMPAR_FN_T |
| 23 | typedef int (*__compar_fn_t)(const void *, const void *); |
| 24 | #endif |
| 25 | + |
| 26 | +#ifndef FTW_ACTIONRETVAL |
| 27 | +#define FTW_ACTIONRETVAL 16 |
| 28 | +#endif |
| 29 | + |
| 30 | +#ifndef FTW_CONTINUE |
| 31 | +#define FTW_CONTINUE 0 |
| 32 | +#endif |
| 33 | + |
| 34 | +#ifndef FTW_STOP |
| 35 | +#define FTW_STOP 1 |
| 36 | +#endif |
| 37 | + |
| 38 | +#ifndef FTW_SKIP_SUBTREE |
| 39 | +#define FTW_SKIP_SUBTREE 2 |
| 40 | +#endif |
| 41 | + |
| 42 | +#ifndef FTW_SKIP_SIBLINGS |
| 43 | +#define FTW_SKIP_SIBLINGS 3 |
| 44 | +#endif |
Andrew Geissler | c723b72 | 2021-01-08 16:14:09 -0600 | [diff] [blame] | 45 | -- |
| 46 | 2.27.0 |
| 47 | |