| From 03cdd33be62db4c72a7fcf21b61d0d056c23c6a9 Mon Sep 17 00:00:00 2001 |
| From: Chen Qi <Qi.Chen@windriver.com> |
| Date: Wed, 28 Feb 2018 21:36:32 -0800 |
| Subject: [PATCH 28/31] add missing FTW_ macros for musl |
| |
| This is to avoid build failures like below for musl. |
| |
| locale-util.c:296:24: error: 'FTW_STOP' undeclared |
| |
| Upstream-Status: Pending |
| |
| Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| --- |
| src/basic/missing.h | 20 ++++++++++++++++++++ |
| 1 file changed, 20 insertions(+) |
| |
| diff --git a/src/basic/missing.h b/src/basic/missing.h |
| index 1aee3346a..5b9fde692 100644 |
| --- a/src/basic/missing.h |
| +++ b/src/basic/missing.h |
| @@ -207,6 +207,26 @@ struct sockaddr_vm { |
| #define BTRFS_QGROUP_LEVEL_SHIFT 48 |
| #endif |
| |
| +#ifndef FTW_ACTIONRETVAL |
| +#define FTW_ACTIONRETVAL 16 |
| +#endif |
| + |
| +#ifndef FTW_CONTINUE |
| +#define FTW_CONTINUE 0 |
| +#endif |
| + |
| +#ifndef FTW_STOP |
| +#define FTW_STOP 1 |
| +#endif |
| + |
| +#ifndef FTW_SKIP_SUBTREE |
| +#define FTW_SKIP_SUBTREE 2 |
| +#endif |
| + |
| +#ifndef FTW_SKIP_SIBLINGS |
| +#define FTW_SKIP_SIBLINGS 3 |
| +#endif |
| + |
| #if ! HAVE_LINUX_BTRFS_H |
| #define BTRFS_IOC_QGROUP_ASSIGN _IOW(BTRFS_IOCTL_MAGIC, 41, \ |
| struct btrfs_ioctl_qgroup_assign_args) |
| -- |
| 2.13.0 |
| |