summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0009-add-missing-FTW_-macros-for-musl.patch
diff options
context:
space:
mode:
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.patch50
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 @@
1From acc2c08082795802011e3c5f8626d63210021489 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Wed, 28 Feb 2018 21:36:32 -0800
4Subject: [PATCH 09/19] add missing FTW_ macros for musl
5
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>
13---
14 src/basic/missing.h | 20 ++++++++++++++++++++
15 1 file changed, 20 insertions(+)
16
17diff --git a/src/basic/missing.h b/src/basic/missing.h
18index 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--
492.11.0
50