diff options
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0009-add-missing-FTW_-macros-for-musl.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0009-add-missing-FTW_-macros-for-musl.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd/0009-add-missing-FTW_-macros-for-musl.patch b/meta/recipes-core/systemd/systemd/0009-add-missing-FTW_-macros-for-musl.patch new file mode 100644 index 0000000000..95287cce10 --- /dev/null +++ b/meta/recipes-core/systemd/systemd/0009-add-missing-FTW_-macros-for-musl.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From acc2c08082795802011e3c5f8626d63210021489 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 09/19] 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: Inappropriate [musl specific] | ||
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 02397f1b6..6dc750eba 100644 | ||
19 | --- a/src/basic/missing.h | ||
20 | +++ b/src/basic/missing.h | ||
21 | @@ -189,6 +189,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.11.0 | ||
50 | |||