Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame^] | 1 | From 03cdd33be62db4c72a7fcf21b61d0d056c23c6a9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Chen Qi <Qi.Chen@windriver.com> |
| 3 | Date: Wed, 28 Feb 2018 21:36:32 -0800 |
| 4 | Subject: [PATCH 28/31] add missing FTW_ macros for musl |
| 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: Pending |
| 11 | |
| 12 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 13 | --- |
| 14 | src/basic/missing.h | 20 ++++++++++++++++++++ |
| 15 | 1 file changed, 20 insertions(+) |
| 16 | |
| 17 | diff --git a/src/basic/missing.h b/src/basic/missing.h |
| 18 | index 1aee3346a..5b9fde692 100644 |
| 19 | --- a/src/basic/missing.h |
| 20 | +++ b/src/basic/missing.h |
| 21 | @@ -207,6 +207,26 @@ struct sockaddr_vm { |
| 22 | #define BTRFS_QGROUP_LEVEL_SHIFT 48 |
| 23 | #endif |
| 24 | |
| 25 | +#ifndef FTW_ACTIONRETVAL |
| 26 | +#define FTW_ACTIONRETVAL 16 |
| 27 | +#endif |
| 28 | + |
| 29 | +#ifndef FTW_CONTINUE |
| 30 | +#define FTW_CONTINUE 0 |
| 31 | +#endif |
| 32 | + |
| 33 | +#ifndef FTW_STOP |
| 34 | +#define FTW_STOP 1 |
| 35 | +#endif |
| 36 | + |
| 37 | +#ifndef FTW_SKIP_SUBTREE |
| 38 | +#define FTW_SKIP_SUBTREE 2 |
| 39 | +#endif |
| 40 | + |
| 41 | +#ifndef FTW_SKIP_SIBLINGS |
| 42 | +#define FTW_SKIP_SIBLINGS 3 |
| 43 | +#endif |
| 44 | + |
| 45 | #if ! HAVE_LINUX_BTRFS_H |
| 46 | #define BTRFS_IOC_QGROUP_ASSIGN _IOW(BTRFS_IOCTL_MAGIC, 41, \ |
| 47 | struct btrfs_ioctl_qgroup_assign_args) |
| 48 | -- |
| 49 | 2.13.0 |
| 50 | |