diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2020-02-06 16:48:13 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-02-08 13:20:02 +0000 |
commit | 306820bad60c62a8096df8d1e4c7cc8e00dc38b7 (patch) | |
tree | 78fe9e9d90e19ca52f2cc462e1368e90484d4b4d /meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch | |
parent | cc7164836097a4100dce65e93b24a3a8874f65b3 (diff) | |
download | poky-306820bad60c62a8096df8d1e4c7cc8e00dc38b7.tar.gz |
systemd: upgrade 243.4 -> 244.1
Drop 0002-use-lnr-wrapper-instead-of-looking-for-relative-opti.patch a
variant on which was introduced in 2c1047310970 ("Upgrade to systemd
211+") in 2014. The oldest supported build machine is now CentOS 7 which
has --relative support in ln, so there no longer appears to be any need
for this change.
Rebase/refresh musl patches:
- replace missing.h with specific missing_... header
- fix additional WRITE_STRING_FILE_DISABLE_BUFFER
- fix more places that need netinet/if_ether.h
(From OE-Core rev: 44a4ac2294da0f53cbbfabc7ece836fe97f4d3f7)
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch')
-rw-r--r-- | meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch | 381 |
1 files changed, 296 insertions, 85 deletions
diff --git a/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch b/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch index adfc3b7861..aa4bb063c9 100644 --- a/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch +++ b/meta/recipes-core/systemd/systemd/0005-src-basic-missing.h-check-for-missing-strndupa.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 399fd3eda3045636a70da438a0fd1406cc332ed1 Mon Sep 17 00:00:00 2001 | 1 | From 9597196234a0ccf30d7f65cf185a8c24cb3158b3 Mon Sep 17 00:00:00 2001 |
2 | From: Chen Qi <Qi.Chen@windriver.com> | 2 | From: Chen Qi <Qi.Chen@windriver.com> |
3 | Date: Mon, 25 Feb 2019 14:18:21 +0800 | 3 | Date: Mon, 25 Feb 2019 14:18:21 +0800 |
4 | Subject: [PATCH 05/24] src/basic/missing.h: check for missing strndupa | 4 | Subject: [PATCH] src/basic/missing.h: check for missing strndupa |
5 | 5 | ||
6 | include missing.h for definition of strndupa | 6 | include missing.h for definition of strndupa |
7 | 7 | ||
@@ -13,28 +13,47 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com> | |||
13 | Signed-off-by: Andrej Valek <andrej.valek@siemens.com> | 13 | Signed-off-by: Andrej Valek <andrej.valek@siemens.com> |
14 | [rebased for systemd 243] | 14 | [rebased for systemd 243] |
15 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> | 15 | Signed-off-by: Scott Murray <scott.murray@konsulko.com> |
16 | Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> | ||
17 | [rebased for systemd 244] | ||
18 | |||
16 | --- | 19 | --- |
17 | meson.build | 1 + | 20 | meson.build | 1 + |
18 | src/backlight/backlight.c | 1 + | 21 | src/backlight/backlight.c | 1 + |
22 | src/basic/cgroup-util.c | 1 + | ||
19 | src/basic/env-util.c | 1 + | 23 | src/basic/env-util.c | 1 + |
24 | src/basic/log.c | 1 + | ||
20 | src/basic/missing_stdlib.h | 12 ++++++++++++ | 25 | src/basic/missing_stdlib.h | 12 ++++++++++++ |
21 | src/basic/mkdir.c | 1 + | 26 | src/basic/mkdir.c | 1 + |
22 | src/basic/parse-util.c | 1 + | 27 | src/basic/parse-util.c | 1 + |
23 | src/basic/proc-cmdline.c | 1 + | 28 | src/basic/proc-cmdline.c | 1 + |
24 | src/basic/procfs-util.c | 1 + | 29 | src/basic/procfs-util.c | 1 + |
30 | src/basic/selinux-util.c | 1 + | ||
25 | src/basic/time-util.c | 1 + | 31 | src/basic/time-util.c | 1 + |
32 | src/boot/bless-boot.c | 1 + | ||
26 | src/core/dbus-cgroup.c | 1 + | 33 | src/core/dbus-cgroup.c | 1 + |
34 | src/core/dbus-execute.c | 1 + | ||
27 | src/core/dbus-util.c | 1 + | 35 | src/core/dbus-util.c | 1 + |
36 | src/core/execute.c | 1 + | ||
28 | src/core/kmod-setup.c | 1 + | 37 | src/core/kmod-setup.c | 1 + |
29 | src/core/service.c | 1 + | 38 | src/core/service.c | 1 + |
39 | src/coredump/coredump-vacuum.c | 1 + | ||
40 | src/journal-remote/journal-remote-main.c | 1 + | ||
30 | src/journal/journalctl.c | 1 + | 41 | src/journal/journalctl.c | 1 + |
31 | src/libsystemd/sd-bus/bus-message.c | 1 + | 42 | src/libsystemd/sd-bus/bus-message.c | 1 + |
32 | src/libsystemd/sd-bus/bus-objects.c | 1 + | 43 | src/libsystemd/sd-bus/bus-objects.c | 1 + |
44 | src/libsystemd/sd-bus/bus-socket.c | 1 + | ||
45 | src/libsystemd/sd-bus/sd-bus.c | 1 + | ||
33 | src/libsystemd/sd-bus/test-bus-benchmark.c | 1 + | 46 | src/libsystemd/sd-bus/test-bus-benchmark.c | 1 + |
34 | src/locale/keymap-util.c | 1 + | 47 | src/locale/keymap-util.c | 1 + |
35 | src/login/pam_systemd.c | 1 + | 48 | src/login/pam_systemd.c | 1 + |
36 | src/network/generator/network-generator.c | 1 + | 49 | src/network/generator/network-generator.c | 1 + |
37 | src/nspawn/nspawn-settings.c | 1 + | 50 | src/nspawn/nspawn-settings.c | 1 + |
51 | src/nss-mymachines/nss-mymachines.c | 1 + | ||
52 | src/portable/portable.c | 1 + | ||
53 | src/resolve/resolvectl.c | 1 + | ||
54 | src/shared/bus-unit-procs.c | 1 + | ||
55 | src/shared/bus-unit-util.c | 1 + | ||
56 | src/shared/bus-util.c | 1 + | ||
38 | src/shared/dns-domain.c | 1 + | 57 | src/shared/dns-domain.c | 1 + |
39 | src/shared/journal-importer.c | 1 + | 58 | src/shared/journal-importer.c | 1 + |
40 | src/shared/logs-show.c | 1 + | 59 | src/shared/logs-show.c | 1 + |
@@ -46,13 +65,13 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com> | |||
46 | src/udev/udev-builtin-path_id.c | 1 + | 65 | src/udev/udev-builtin-path_id.c | 1 + |
47 | src/udev/udev-event.c | 1 + | 66 | src/udev/udev-event.c | 1 + |
48 | src/udev/udev-rules.c | 1 + | 67 | src/udev/udev-rules.c | 1 + |
49 | 32 files changed, 43 insertions(+) | 68 | 48 files changed, 59 insertions(+) |
50 | 69 | ||
51 | diff --git a/meson.build b/meson.build | 70 | diff --git a/meson.build b/meson.build |
52 | index 7f8c679411..81c061b768 100644 | 71 | index bab0bf84806c..f4e1736cf09e 100644 |
53 | --- a/meson.build | 72 | --- a/meson.build |
54 | +++ b/meson.build | 73 | +++ b/meson.build |
55 | @@ -506,6 +506,7 @@ foreach ident : [ | 74 | @@ -517,6 +517,7 @@ foreach ident : [ |
56 | #include <unistd.h>'''], | 75 | #include <unistd.h>'''], |
57 | ['get_mempolicy', '''#include <stdlib.h> | 76 | ['get_mempolicy', '''#include <stdlib.h> |
58 | #include <unistd.h>'''], | 77 | #include <unistd.h>'''], |
@@ -61,31 +80,55 @@ index 7f8c679411..81c061b768 100644 | |||
61 | 80 | ||
62 | have = cc.has_function(ident[0], prefix : ident[1], args : '-D_GNU_SOURCE') | 81 | have = cc.has_function(ident[0], prefix : ident[1], args : '-D_GNU_SOURCE') |
63 | diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c | 82 | diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c |
64 | index dfd6805398..c2b2ace6ec 100644 | 83 | index 048441429025..01d74ea0ed4e 100644 |
65 | --- a/src/backlight/backlight.c | 84 | --- a/src/backlight/backlight.c |
66 | +++ b/src/backlight/backlight.c | 85 | +++ b/src/backlight/backlight.c |
67 | @@ -17,6 +17,7 @@ | 86 | @@ -17,6 +17,7 @@ |
68 | #include "string-util.h" | 87 | #include "string-util.h" |
69 | #include "strv.h" | 88 | #include "strv.h" |
70 | #include "util.h" | 89 | #include "util.h" |
71 | +#include "missing.h" | 90 | +#include "missing_stdlib.h" |
72 | 91 | ||
73 | static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) { | 92 | static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) { |
74 | const char *subsystem, *sysname, *value; | 93 | const char *subsystem, *sysname, *value; |
94 | diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c | ||
95 | index 54fc6ecf8b20..a5141f4cbedd 100644 | ||
96 | --- a/src/basic/cgroup-util.c | ||
97 | +++ b/src/basic/cgroup-util.c | ||
98 | @@ -37,6 +37,7 @@ | ||
99 | #include "strv.h" | ||
100 | #include "unit-name.h" | ||
101 | #include "user-util.h" | ||
102 | +#include "missing_stdlib.h" | ||
103 | |||
104 | static int cg_enumerate_items(const char *controller, const char *path, FILE **_f, const char *item) { | ||
105 | _cleanup_free_ char *fs = NULL; | ||
75 | diff --git a/src/basic/env-util.c b/src/basic/env-util.c | 106 | diff --git a/src/basic/env-util.c b/src/basic/env-util.c |
76 | index a6503cf2b6..ceef9a62c8 100644 | 107 | index b8dc98915f81..5049b37594bc 100644 |
77 | --- a/src/basic/env-util.c | 108 | --- a/src/basic/env-util.c |
78 | +++ b/src/basic/env-util.c | 109 | +++ b/src/basic/env-util.c |
79 | @@ -16,6 +16,7 @@ | 110 | @@ -15,6 +15,7 @@ |
80 | #include "string-util.h" | 111 | #include "string-util.h" |
81 | #include "strv.h" | 112 | #include "strv.h" |
82 | #include "utf8.h" | 113 | #include "utf8.h" |
83 | +#include "missing.h" | 114 | +#include "missing_stdlib.h" |
84 | 115 | ||
85 | #define VALID_CHARS_ENV_NAME \ | 116 | #define VALID_CHARS_ENV_NAME \ |
86 | DIGITS LETTERS \ | 117 | DIGITS LETTERS \ |
118 | diff --git a/src/basic/log.c b/src/basic/log.c | ||
119 | index 17557e1844b2..6cec4d324aab 100644 | ||
120 | --- a/src/basic/log.c | ||
121 | +++ b/src/basic/log.c | ||
122 | @@ -34,6 +34,7 @@ | ||
123 | #include "terminal-util.h" | ||
124 | #include "time-util.h" | ||
125 | #include "utf8.h" | ||
126 | +#include "missing_stdlib.h" | ||
127 | |||
128 | #define SNDBUF_SIZE (8*1024*1024) | ||
129 | |||
87 | diff --git a/src/basic/missing_stdlib.h b/src/basic/missing_stdlib.h | 130 | diff --git a/src/basic/missing_stdlib.h b/src/basic/missing_stdlib.h |
88 | index 188a8d4406..1e16ec287a 100644 | 131 | index 188a8d44066a..1e16ec287aad 100644 |
89 | --- a/src/basic/missing_stdlib.h | 132 | --- a/src/basic/missing_stdlib.h |
90 | +++ b/src/basic/missing_stdlib.h | 133 | +++ b/src/basic/missing_stdlib.h |
91 | @@ -11,3 +11,15 @@ | 134 | @@ -11,3 +11,15 @@ |
@@ -105,338 +148,506 @@ index 188a8d4406..1e16ec287a 100644 | |||
105 | + }) | 148 | + }) |
106 | +#endif | 149 | +#endif |
107 | diff --git a/src/basic/mkdir.c b/src/basic/mkdir.c | 150 | diff --git a/src/basic/mkdir.c b/src/basic/mkdir.c |
108 | index 6b82eab640..51c6b78615 100644 | 151 | index fa682d4c438e..37902551490a 100644 |
109 | --- a/src/basic/mkdir.c | 152 | --- a/src/basic/mkdir.c |
110 | +++ b/src/basic/mkdir.c | 153 | +++ b/src/basic/mkdir.c |
111 | @@ -14,6 +14,7 @@ | 154 | @@ -13,6 +13,7 @@ |
112 | #include "stat-util.h" | 155 | #include "stat-util.h" |
113 | #include "stdio-util.h" | 156 | #include "stdio-util.h" |
114 | #include "user-util.h" | 157 | #include "user-util.h" |
115 | +#include "missing.h" | 158 | +#include "missing_stdlib.h" |
116 | 159 | ||
117 | int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, MkdirFlags flags, mkdir_func_t _mkdir) { | 160 | int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, MkdirFlags flags, mkdir_func_t _mkdir) { |
118 | struct stat st; | 161 | struct stat st; |
119 | diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c | 162 | diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c |
120 | index 115a1494a2..07a34bfd53 100644 | 163 | index aec6099c9cc1..744b9b134ce4 100644 |
121 | --- a/src/basic/parse-util.c | 164 | --- a/src/basic/parse-util.c |
122 | +++ b/src/basic/parse-util.c | 165 | +++ b/src/basic/parse-util.c |
123 | @@ -20,6 +20,7 @@ | 166 | @@ -18,6 +18,7 @@ |
124 | #include "process-util.h" | 167 | #include "process-util.h" |
125 | #include "stat-util.h" | 168 | #include "stat-util.h" |
126 | #include "string-util.h" | 169 | #include "string-util.h" |
127 | +#include "missing.h" | 170 | +#include "missing_stdlib.h" |
128 | 171 | ||
129 | int parse_boolean(const char *v) { | 172 | int parse_boolean(const char *v) { |
130 | if (!v) | 173 | if (!v) |
131 | diff --git a/src/basic/proc-cmdline.c b/src/basic/proc-cmdline.c | 174 | diff --git a/src/basic/proc-cmdline.c b/src/basic/proc-cmdline.c |
132 | index 09169cf963..f411ba897f 100644 | 175 | index d3d99d9a7f90..e0b9efad03a2 100644 |
133 | --- a/src/basic/proc-cmdline.c | 176 | --- a/src/basic/proc-cmdline.c |
134 | +++ b/src/basic/proc-cmdline.c | 177 | +++ b/src/basic/proc-cmdline.c |
135 | @@ -15,6 +15,7 @@ | 178 | @@ -15,6 +15,7 @@ |
136 | #include "string-util.h" | 179 | #include "string-util.h" |
137 | #include "util.h" | 180 | #include "util.h" |
138 | #include "virt.h" | 181 | #include "virt.h" |
139 | +#include "missing.h" | 182 | +#include "missing_stdlib.h" |
140 | 183 | ||
141 | int proc_cmdline(char **ret) { | 184 | int proc_cmdline(char **ret) { |
142 | const char *e; | 185 | const char *e; |
143 | diff --git a/src/basic/procfs-util.c b/src/basic/procfs-util.c | 186 | diff --git a/src/basic/procfs-util.c b/src/basic/procfs-util.c |
144 | index 7aaf95bfce..42ce53d5aa 100644 | 187 | index 7aaf95bfced2..da7e836f143e 100644 |
145 | --- a/src/basic/procfs-util.c | 188 | --- a/src/basic/procfs-util.c |
146 | +++ b/src/basic/procfs-util.c | 189 | +++ b/src/basic/procfs-util.c |
147 | @@ -11,6 +11,7 @@ | 190 | @@ -11,6 +11,7 @@ |
148 | #include "procfs-util.h" | 191 | #include "procfs-util.h" |
149 | #include "stdio-util.h" | 192 | #include "stdio-util.h" |
150 | #include "string-util.h" | 193 | #include "string-util.h" |
151 | +#include "missing.h" | 194 | +#include "missing_stdlib.h" |
152 | 195 | ||
153 | int procfs_tasks_get_limit(uint64_t *ret) { | 196 | int procfs_tasks_get_limit(uint64_t *ret) { |
154 | _cleanup_free_ char *value = NULL; | 197 | _cleanup_free_ char *value = NULL; |
198 | diff --git a/src/basic/selinux-util.c b/src/basic/selinux-util.c | ||
199 | index f35e760233be..e4b0a8aa445e 100644 | ||
200 | --- a/src/basic/selinux-util.c | ||
201 | +++ b/src/basic/selinux-util.c | ||
202 | @@ -26,6 +26,7 @@ | ||
203 | #include "selinux-util.h" | ||
204 | #include "stdio-util.h" | ||
205 | #include "time-util.h" | ||
206 | +#include "missing_stdlib.h" | ||
207 | |||
208 | #if HAVE_SELINUX | ||
209 | DEFINE_TRIVIAL_CLEANUP_FUNC(char*, freecon); | ||
155 | diff --git a/src/basic/time-util.c b/src/basic/time-util.c | 210 | diff --git a/src/basic/time-util.c b/src/basic/time-util.c |
156 | index 3018e81acb..4e2b3b66c1 100644 | 211 | index bfe2c60da173..d7ef30d2fe52 100644 |
157 | --- a/src/basic/time-util.c | 212 | --- a/src/basic/time-util.c |
158 | +++ b/src/basic/time-util.c | 213 | +++ b/src/basic/time-util.c |
159 | @@ -28,6 +28,7 @@ | 214 | @@ -26,6 +26,7 @@ |
160 | #include "string-util.h" | 215 | #include "string-util.h" |
161 | #include "strv.h" | 216 | #include "strv.h" |
162 | #include "time-util.h" | 217 | #include "time-util.h" |
163 | +#include "missing.h" | 218 | +#include "missing_stdlib.h" |
164 | 219 | ||
165 | static clockid_t map_clock_id(clockid_t c) { | 220 | static clockid_t map_clock_id(clockid_t c) { |
166 | 221 | ||
222 | diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c | ||
223 | index b96e1f927fff..cba979baca3e 100644 | ||
224 | --- a/src/boot/bless-boot.c | ||
225 | +++ b/src/boot/bless-boot.c | ||
226 | @@ -18,6 +18,7 @@ | ||
227 | #include "util.h" | ||
228 | #include "verbs.h" | ||
229 | #include "virt.h" | ||
230 | +#include "missing_stdlib.h" | ||
231 | |||
232 | static char **arg_path = NULL; | ||
233 | |||
167 | diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c | 234 | diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c |
168 | index 2f2313c599..c9937f9d62 100644 | 235 | index 27dc9e43c3e2..b1a83023600b 100644 |
169 | --- a/src/core/dbus-cgroup.c | 236 | --- a/src/core/dbus-cgroup.c |
170 | +++ b/src/core/dbus-cgroup.c | 237 | +++ b/src/core/dbus-cgroup.c |
171 | @@ -15,6 +15,7 @@ | 238 | @@ -15,6 +15,7 @@ |
172 | #include "fileio.h" | 239 | #include "fileio.h" |
173 | #include "limits-util.h" | 240 | #include "limits-util.h" |
174 | #include "path-util.h" | 241 | #include "path-util.h" |
175 | +#include "missing.h" | 242 | +#include "missing_stdlib.h" |
176 | 243 | ||
177 | static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_cgroup_device_policy, cgroup_device_policy, CGroupDevicePolicy); | 244 | BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", TasksMax, tasks_max_resolve); |
245 | |||
246 | diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c | ||
247 | index 1d0bc1ede3cb..313654913345 100644 | ||
248 | --- a/src/core/dbus-execute.c | ||
249 | +++ b/src/core/dbus-execute.c | ||
250 | @@ -41,6 +41,7 @@ | ||
251 | #include "unit-printf.h" | ||
252 | #include "user-util.h" | ||
253 | #include "utf8.h" | ||
254 | +#include "missing_stdlib.h" | ||
178 | 255 | ||
256 | BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput); | ||
257 | static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput); | ||
179 | diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c | 258 | diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c |
180 | index 7862beaacb..19f6968cfe 100644 | 259 | index 7862beaacb6d..3b1ea53a5f0d 100644 |
181 | --- a/src/core/dbus-util.c | 260 | --- a/src/core/dbus-util.c |
182 | +++ b/src/core/dbus-util.c | 261 | +++ b/src/core/dbus-util.c |
183 | @@ -7,6 +7,7 @@ | 262 | @@ -7,6 +7,7 @@ |
184 | #include "unit-printf.h" | 263 | #include "unit-printf.h" |
185 | #include "user-util.h" | 264 | #include "user-util.h" |
186 | #include "unit.h" | 265 | #include "unit.h" |
187 | +#include "missing.h" | 266 | +#include "missing_stdlib.h" |
188 | 267 | ||
189 | int bus_property_get_triggered_unit( | 268 | int bus_property_get_triggered_unit( |
190 | sd_bus *bus, | 269 | sd_bus *bus, |
270 | diff --git a/src/core/execute.c b/src/core/execute.c | ||
271 | index abc164ff5bef..f04b8ba05002 100644 | ||
272 | --- a/src/core/execute.c | ||
273 | +++ b/src/core/execute.c | ||
274 | @@ -88,6 +88,7 @@ | ||
275 | #include "unit.h" | ||
276 | #include "user-util.h" | ||
277 | #include "utmp-wtmp.h" | ||
278 | +#include "missing_stdlib.h" | ||
279 | |||
280 | #define IDLE_TIMEOUT_USEC (5*USEC_PER_SEC) | ||
281 | #define IDLE_TIMEOUT2_USEC (1*USEC_PER_SEC) | ||
191 | diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c | 282 | diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c |
192 | index a91cfebc67..a45961013f 100644 | 283 | index 09ccd613e32c..f4e64fa283e9 100644 |
193 | --- a/src/core/kmod-setup.c | 284 | --- a/src/core/kmod-setup.c |
194 | +++ b/src/core/kmod-setup.c | 285 | +++ b/src/core/kmod-setup.c |
195 | @@ -11,6 +11,7 @@ | 286 | @@ -11,6 +11,7 @@ |
196 | #include "kmod-setup.h" | ||
197 | #include "macro.h" | 287 | #include "macro.h" |
198 | #include "string-util.h" | 288 | #include "string-util.h" |
199 | +#include "missing.h" | 289 | #include "missing_type.h" |
290 | +#include "missing_stdlib.h" | ||
200 | 291 | ||
201 | #if HAVE_KMOD | 292 | #if HAVE_KMOD |
202 | #include <libkmod.h> | 293 | #include "module-util.h" |
203 | diff --git a/src/core/service.c b/src/core/service.c | 294 | diff --git a/src/core/service.c b/src/core/service.c |
204 | index 73b3c9c316..ef74f00a08 100644 | 295 | index 49ad166c2604..c3b14067e201 100644 |
205 | --- a/src/core/service.c | 296 | --- a/src/core/service.c |
206 | +++ b/src/core/service.c | 297 | +++ b/src/core/service.c |
207 | @@ -43,6 +43,7 @@ | 298 | @@ -41,6 +41,7 @@ |
208 | #include "unit.h" | 299 | #include "unit.h" |
209 | #include "utf8.h" | 300 | #include "utf8.h" |
210 | #include "util.h" | 301 | #include "util.h" |
211 | +#include "missing.h" | 302 | +#include "missing_stdlib.h" |
212 | 303 | ||
213 | static const UnitActiveState state_translation_table[_SERVICE_STATE_MAX] = { | 304 | static const UnitActiveState state_translation_table[_SERVICE_STATE_MAX] = { |
214 | [SERVICE_DEAD] = UNIT_INACTIVE, | 305 | [SERVICE_DEAD] = UNIT_INACTIVE, |
306 | diff --git a/src/coredump/coredump-vacuum.c b/src/coredump/coredump-vacuum.c | ||
307 | index 35885dfb47c4..bb9f0660a6a0 100644 | ||
308 | --- a/src/coredump/coredump-vacuum.c | ||
309 | +++ b/src/coredump/coredump-vacuum.c | ||
310 | @@ -16,6 +16,7 @@ | ||
311 | #include "string-util.h" | ||
312 | #include "time-util.h" | ||
313 | #include "user-util.h" | ||
314 | +#include "missing_stdlib.h" | ||
315 | |||
316 | #define DEFAULT_MAX_USE_LOWER (uint64_t) (1ULL*1024ULL*1024ULL) /* 1 MiB */ | ||
317 | #define DEFAULT_MAX_USE_UPPER (uint64_t) (4ULL*1024ULL*1024ULL*1024ULL) /* 4 GiB */ | ||
318 | diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c | ||
319 | index ac2bf648d2af..06c86f0201af 100644 | ||
320 | --- a/src/journal-remote/journal-remote-main.c | ||
321 | +++ b/src/journal-remote/journal-remote-main.c | ||
322 | @@ -21,6 +21,7 @@ | ||
323 | #include "stat-util.h" | ||
324 | #include "string-table.h" | ||
325 | #include "strv.h" | ||
326 | +#include "missing_stdlib.h" | ||
327 | |||
328 | #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem" | ||
329 | #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem" | ||
215 | diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c | 330 | diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c |
216 | index 6d6bb1cf63..6666349a35 100644 | 331 | index 95b6bfee172a..e0bcfb9d4233 100644 |
217 | --- a/src/journal/journalctl.c | 332 | --- a/src/journal/journalctl.c |
218 | +++ b/src/journal/journalctl.c | 333 | +++ b/src/journal/journalctl.c |
219 | @@ -70,6 +70,7 @@ | 334 | @@ -68,6 +68,7 @@ |
220 | #include "unit-name.h" | 335 | #include "unit-name.h" |
221 | #include "user-util.h" | 336 | #include "user-util.h" |
222 | #include "varlink.h" | 337 | #include "varlink.h" |
223 | +#include "missing.h" | 338 | +#include "missing_stdlib.h" |
224 | 339 | ||
225 | #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE) | 340 | #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE) |
226 | 341 | ||
227 | diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c | 342 | diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c |
228 | index eb029e4453..f31fe9d5a8 100644 | 343 | index eb029e445326..8da2c5d51a75 100644 |
229 | --- a/src/libsystemd/sd-bus/bus-message.c | 344 | --- a/src/libsystemd/sd-bus/bus-message.c |
230 | +++ b/src/libsystemd/sd-bus/bus-message.c | 345 | +++ b/src/libsystemd/sd-bus/bus-message.c |
231 | @@ -21,6 +21,7 @@ | 346 | @@ -21,6 +21,7 @@ |
232 | #include "strv.h" | 347 | #include "strv.h" |
233 | #include "time-util.h" | 348 | #include "time-util.h" |
234 | #include "utf8.h" | 349 | #include "utf8.h" |
235 | +#include "missing.h" | 350 | +#include "missing_stdlib.h" |
236 | 351 | ||
237 | static int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored); | 352 | static int message_append_basic(sd_bus_message *m, char type, const void *p, const void **stored); |
238 | 353 | ||
239 | diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c | 354 | diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c |
240 | index ae643cacc7..1b752271a5 100644 | 355 | index ae643cacc740..f766e235206d 100644 |
241 | --- a/src/libsystemd/sd-bus/bus-objects.c | 356 | --- a/src/libsystemd/sd-bus/bus-objects.c |
242 | +++ b/src/libsystemd/sd-bus/bus-objects.c | 357 | +++ b/src/libsystemd/sd-bus/bus-objects.c |
243 | @@ -13,6 +13,7 @@ | 358 | @@ -13,6 +13,7 @@ |
244 | #include "set.h" | 359 | #include "set.h" |
245 | #include "string-util.h" | 360 | #include "string-util.h" |
246 | #include "strv.h" | 361 | #include "strv.h" |
247 | +#include "missing.h" | 362 | +#include "missing_stdlib.h" |
248 | 363 | ||
249 | static int node_vtable_get_userdata( | 364 | static int node_vtable_get_userdata( |
250 | sd_bus *bus, | 365 | sd_bus *bus, |
366 | diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c | ||
367 | index 18d30d010a20..be2ab703f8ed 100644 | ||
368 | --- a/src/libsystemd/sd-bus/bus-socket.c | ||
369 | +++ b/src/libsystemd/sd-bus/bus-socket.c | ||
370 | @@ -28,6 +28,7 @@ | ||
371 | #include "string-util.h" | ||
372 | #include "user-util.h" | ||
373 | #include "utf8.h" | ||
374 | +#include "missing_stdlib.h" | ||
375 | |||
376 | #define SNDBUF_SIZE (8*1024*1024) | ||
377 | |||
378 | diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c | ||
379 | index 058492a83eec..54c896f572b9 100644 | ||
380 | --- a/src/libsystemd/sd-bus/sd-bus.c | ||
381 | +++ b/src/libsystemd/sd-bus/sd-bus.c | ||
382 | @@ -41,6 +41,7 @@ | ||
383 | #include "process-util.h" | ||
384 | #include "string-util.h" | ||
385 | #include "strv.h" | ||
386 | +#include "missing_stdlib.h" | ||
387 | |||
388 | #define log_debug_bus_message(m) \ | ||
389 | do { \ | ||
251 | diff --git a/src/libsystemd/sd-bus/test-bus-benchmark.c b/src/libsystemd/sd-bus/test-bus-benchmark.c | 390 | diff --git a/src/libsystemd/sd-bus/test-bus-benchmark.c b/src/libsystemd/sd-bus/test-bus-benchmark.c |
252 | index 8de0a859ee..4fd0a2e692 100644 | 391 | index 8de0a859ee94..58044b6ba908 100644 |
253 | --- a/src/libsystemd/sd-bus/test-bus-benchmark.c | 392 | --- a/src/libsystemd/sd-bus/test-bus-benchmark.c |
254 | +++ b/src/libsystemd/sd-bus/test-bus-benchmark.c | 393 | +++ b/src/libsystemd/sd-bus/test-bus-benchmark.c |
255 | @@ -14,6 +14,7 @@ | 394 | @@ -14,6 +14,7 @@ |
256 | #include "missing_resource.h" | 395 | #include "missing_resource.h" |
257 | #include "time-util.h" | 396 | #include "time-util.h" |
258 | #include "util.h" | 397 | #include "util.h" |
259 | +#include "missing.h" | 398 | +#include "missing_stdlib.h" |
260 | 399 | ||
261 | #define MAX_SIZE (2*1024*1024) | 400 | #define MAX_SIZE (2*1024*1024) |
262 | 401 | ||
263 | diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c | 402 | diff --git a/src/locale/keymap-util.c b/src/locale/keymap-util.c |
264 | index f8c36c94f5..41f5606aea 100644 | 403 | index 519dd0d188cf..a8f536915bb2 100644 |
265 | --- a/src/locale/keymap-util.c | 404 | --- a/src/locale/keymap-util.c |
266 | +++ b/src/locale/keymap-util.c | 405 | +++ b/src/locale/keymap-util.c |
267 | @@ -22,6 +22,7 @@ | 406 | @@ -21,6 +21,7 @@ |
268 | #include "string-util.h" | 407 | #include "string-util.h" |
269 | #include "strv.h" | 408 | #include "strv.h" |
270 | #include "tmpfile-util.h" | 409 | #include "tmpfile-util.h" |
271 | +#include "missing.h" | 410 | +#include "missing_stdlib.h" |
272 | 411 | ||
273 | static bool startswith_comma(const char *s, const char *prefix) { | 412 | static bool startswith_comma(const char *s, const char *prefix) { |
274 | s = startswith(s, prefix); | 413 | s = startswith(s, prefix); |
275 | diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c | 414 | diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c |
276 | index 3f762cbbc3..005cfea658 100644 | 415 | index aa6e5ea7aca8..c439c21b2872 100644 |
277 | --- a/src/login/pam_systemd.c | 416 | --- a/src/login/pam_systemd.c |
278 | +++ b/src/login/pam_systemd.c | 417 | +++ b/src/login/pam_systemd.c |
279 | @@ -28,6 +28,7 @@ | 418 | @@ -28,6 +28,7 @@ |
280 | #include "hostname-util.h" | 419 | #include "hostname-util.h" |
281 | #include "login-util.h" | 420 | #include "login-util.h" |
282 | #include "macro.h" | 421 | #include "macro.h" |
283 | +#include "missing.h" | 422 | +#include "missing_stdlib.h" |
284 | #include "parse-util.h" | 423 | #include "parse-util.h" |
285 | #include "path-util.h" | 424 | #include "path-util.h" |
286 | #include "process-util.h" | 425 | #include "process-util.h" |
287 | diff --git a/src/network/generator/network-generator.c b/src/network/generator/network-generator.c | 426 | diff --git a/src/network/generator/network-generator.c b/src/network/generator/network-generator.c |
288 | index 0b5af33566..9c808cd014 100644 | 427 | index 81afa9530762..2c5328f97c63 100644 |
289 | --- a/src/network/generator/network-generator.c | 428 | --- a/src/network/generator/network-generator.c |
290 | +++ b/src/network/generator/network-generator.c | 429 | +++ b/src/network/generator/network-generator.c |
291 | @@ -13,6 +13,7 @@ | 430 | @@ -13,6 +13,7 @@ |
292 | #include "string-table.h" | 431 | #include "string-table.h" |
293 | #include "string-util.h" | 432 | #include "string-util.h" |
294 | #include "strv.h" | 433 | #include "strv.h" |
295 | +#include "missing.h" | 434 | +#include "missing_stdlib.h" |
296 | 435 | ||
297 | /* | 436 | /* |
298 | # .network | 437 | # .network |
299 | diff --git a/src/nspawn/nspawn-settings.c b/src/nspawn/nspawn-settings.c | 438 | diff --git a/src/nspawn/nspawn-settings.c b/src/nspawn/nspawn-settings.c |
300 | index 3a99736813..279fea4d88 100644 | 439 | index 5fb5b49bbcc3..785ccc2da307 100644 |
301 | --- a/src/nspawn/nspawn-settings.c | 440 | --- a/src/nspawn/nspawn-settings.c |
302 | +++ b/src/nspawn/nspawn-settings.c | 441 | +++ b/src/nspawn/nspawn-settings.c |
303 | @@ -16,6 +16,7 @@ | 442 | @@ -16,6 +16,7 @@ |
304 | #include "strv.h" | 443 | #include "strv.h" |
305 | #include "user-util.h" | 444 | #include "user-util.h" |
306 | #include "util.h" | 445 | #include "util.h" |
307 | +#include "missing.h" | 446 | +#include "missing_stdlib.h" |
308 | 447 | ||
309 | Settings *settings_new(void) { | 448 | Settings *settings_new(void) { |
310 | Settings *s; | 449 | Settings *s; |
450 | diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c | ||
451 | index 364356da5622..47d4ea44e40f 100644 | ||
452 | --- a/src/nss-mymachines/nss-mymachines.c | ||
453 | +++ b/src/nss-mymachines/nss-mymachines.c | ||
454 | @@ -19,6 +19,7 @@ | ||
455 | #include "signal-util.h" | ||
456 | #include "string-util.h" | ||
457 | #include "user-util.h" | ||
458 | +#include "missing_stdlib.h" | ||
459 | |||
460 | NSS_GETHOSTBYNAME_PROTOTYPES(mymachines); | ||
461 | NSS_GETPW_PROTOTYPES(mymachines); | ||
462 | diff --git a/src/portable/portable.c b/src/portable/portable.c | ||
463 | index 34b123e84692..5a48504d00ac 100644 | ||
464 | --- a/src/portable/portable.c | ||
465 | +++ b/src/portable/portable.c | ||
466 | @@ -29,6 +29,7 @@ | ||
467 | #include "strv.h" | ||
468 | #include "tmpfile-util.h" | ||
469 | #include "user-util.h" | ||
470 | +#include "missing_stdlib.h" | ||
471 | |||
472 | static const char profile_dirs[] = CONF_PATHS_NULSTR("systemd/portable/profile"); | ||
473 | |||
474 | diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c | ||
475 | index 0a96a18b3836..432d6ebc3730 100644 | ||
476 | --- a/src/resolve/resolvectl.c | ||
477 | +++ b/src/resolve/resolvectl.c | ||
478 | @@ -31,6 +31,7 @@ | ||
479 | #include "strv.h" | ||
480 | #include "terminal-util.h" | ||
481 | #include "verbs.h" | ||
482 | +#include "missing_stdlib.h" | ||
483 | |||
484 | static int arg_family = AF_UNSPEC; | ||
485 | static int arg_ifindex = 0; | ||
486 | diff --git a/src/shared/bus-unit-procs.c b/src/shared/bus-unit-procs.c | ||
487 | index b21fe393265f..af2640005c1d 100644 | ||
488 | --- a/src/shared/bus-unit-procs.c | ||
489 | +++ b/src/shared/bus-unit-procs.c | ||
490 | @@ -10,6 +10,7 @@ | ||
491 | #include "sort-util.h" | ||
492 | #include "string-util.h" | ||
493 | #include "terminal-util.h" | ||
494 | +#include "missing_stdlib.h" | ||
495 | |||
496 | struct CGroupInfo { | ||
497 | char *cgroup_path; | ||
498 | diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c | ||
499 | index 22a15493d7f3..3f4c51975675 100644 | ||
500 | --- a/src/shared/bus-unit-util.c | ||
501 | +++ b/src/shared/bus-unit-util.c | ||
502 | @@ -34,6 +34,7 @@ | ||
503 | #include "unit-def.h" | ||
504 | #include "user-util.h" | ||
505 | #include "utf8.h" | ||
506 | +#include "missing_stdlib.h" | ||
507 | |||
508 | int bus_parse_unit_info(sd_bus_message *message, UnitInfo *u) { | ||
509 | assert(message); | ||
510 | diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c | ||
511 | index aea46d311996..223426298144 100644 | ||
512 | --- a/src/shared/bus-util.c | ||
513 | +++ b/src/shared/bus-util.c | ||
514 | @@ -34,6 +34,7 @@ | ||
515 | #include "stdio-util.h" | ||
516 | #include "strv.h" | ||
517 | #include "user-util.h" | ||
518 | +#include "missing_stdlib.h" | ||
519 | |||
520 | static int name_owner_change_callback(sd_bus_message *m, void *userdata, sd_bus_error *ret_error) { | ||
521 | sd_event *e = userdata; | ||
311 | diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c | 522 | diff --git a/src/shared/dns-domain.c b/src/shared/dns-domain.c |
312 | index f62ad0a0f5..f1a27e158d 100644 | 523 | index b812665315f6..8e68f7f8fc6c 100644 |
313 | --- a/src/shared/dns-domain.c | 524 | --- a/src/shared/dns-domain.c |
314 | +++ b/src/shared/dns-domain.c | 525 | +++ b/src/shared/dns-domain.c |
315 | @@ -24,6 +24,7 @@ | 526 | @@ -23,6 +23,7 @@ |
316 | #include "string-util.h" | 527 | #include "string-util.h" |
317 | #include "strv.h" | 528 | #include "strv.h" |
318 | #include "utf8.h" | 529 | #include "utf8.h" |
319 | +#include "missing.h" | 530 | +#include "missing_stdlib.h" |
320 | 531 | ||
321 | int dns_label_unescape(const char **name, char *dest, size_t sz, DNSLabelFlags flags) { | 532 | int dns_label_unescape(const char **name, char *dest, size_t sz, DNSLabelFlags flags) { |
322 | const char *n; | 533 | const char *n; |
323 | diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c | 534 | diff --git a/src/shared/journal-importer.c b/src/shared/journal-importer.c |
324 | index 7c4fc7021d..a6ff2214df 100644 | 535 | index 7c4fc7021dec..3fbaf5a63969 100644 |
325 | --- a/src/shared/journal-importer.c | 536 | --- a/src/shared/journal-importer.c |
326 | +++ b/src/shared/journal-importer.c | 537 | +++ b/src/shared/journal-importer.c |
327 | @@ -14,6 +14,7 @@ | 538 | @@ -14,6 +14,7 @@ |
328 | #include "parse-util.h" | 539 | #include "parse-util.h" |
329 | #include "string-util.h" | 540 | #include "string-util.h" |
330 | #include "unaligned.h" | 541 | #include "unaligned.h" |
331 | +#include "missing.h" | 542 | +#include "missing_stdlib.h" |
332 | 543 | ||
333 | enum { | 544 | enum { |
334 | IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */ | 545 | IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */ |
335 | diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c | 546 | diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c |
336 | index b615c70dff..75b26e9c21 100644 | 547 | index 95b2e3376e9a..facc23aaecd5 100644 |
337 | --- a/src/shared/logs-show.c | 548 | --- a/src/shared/logs-show.c |
338 | +++ b/src/shared/logs-show.c | 549 | +++ b/src/shared/logs-show.c |
339 | @@ -39,6 +39,7 @@ | 550 | @@ -37,6 +37,7 @@ |
340 | #include "time-util.h" | 551 | #include "time-util.h" |
341 | #include "utf8.h" | 552 | #include "utf8.h" |
342 | #include "util.h" | 553 | #include "util.h" |
343 | +#include "missing.h" | 554 | +#include "missing_stdlib.h" |
344 | 555 | ||
345 | /* up to three lines (each up to 100 characters) or 300 characters, whichever is less */ | 556 | /* up to three lines (each up to 100 characters) or 300 characters, whichever is less */ |
346 | #define PRINT_LINE_THRESHOLD 3 | 557 | #define PRINT_LINE_THRESHOLD 3 |
347 | diff --git a/src/shared/pager.c b/src/shared/pager.c | 558 | diff --git a/src/shared/pager.c b/src/shared/pager.c |
348 | index 7c20b100b4..e4209d3a95 100644 | 559 | index 1fe9db179176..67954b5cab93 100644 |
349 | --- a/src/shared/pager.c | 560 | --- a/src/shared/pager.c |
350 | +++ b/src/shared/pager.c | 561 | +++ b/src/shared/pager.c |
351 | @@ -25,6 +25,7 @@ | 562 | @@ -23,6 +23,7 @@ |
352 | #include "strv.h" | 563 | #include "strv.h" |
353 | #include "terminal-util.h" | 564 | #include "terminal-util.h" |
354 | #include "util.h" | 565 | #include "util.h" |
355 | +#include "missing.h" | 566 | +#include "missing_stdlib.h" |
356 | 567 | ||
357 | static pid_t pager_pid = 0; | 568 | static pid_t pager_pid = 0; |
358 | 569 | ||
359 | diff --git a/src/shared/path-lookup.c b/src/shared/path-lookup.c | 570 | diff --git a/src/shared/path-lookup.c b/src/shared/path-lookup.c |
360 | index 6bf0ff0316..f6c8009cd2 100644 | 571 | index 5b1620974536..0e7cd1c2af12 100644 |
361 | --- a/src/shared/path-lookup.c | 572 | --- a/src/shared/path-lookup.c |
362 | +++ b/src/shared/path-lookup.c | 573 | +++ b/src/shared/path-lookup.c |
363 | @@ -20,6 +20,7 @@ | 574 | @@ -19,6 +19,7 @@ |
364 | #include "tmpfile-util.h" | 575 | #include "tmpfile-util.h" |
365 | #include "user-util.h" | 576 | #include "user-util.h" |
366 | #include "util.h" | 577 | #include "util.h" |
367 | +#include "missing.h" | 578 | +#include "missing_stdlib.h" |
368 | 579 | ||
369 | int xdg_user_runtime_dir(char **ret, const char *suffix) { | 580 | int xdg_user_runtime_dir(char **ret, const char *suffix) { |
370 | const char *e; | 581 | const char *e; |
371 | diff --git a/src/shared/uid-range.c b/src/shared/uid-range.c | 582 | diff --git a/src/shared/uid-range.c b/src/shared/uid-range.c |
372 | index 7cb7d8a477..8b12b91084 100644 | 583 | index 7cb7d8a477e9..8e7d7f9e7ca6 100644 |
373 | --- a/src/shared/uid-range.c | 584 | --- a/src/shared/uid-range.c |
374 | +++ b/src/shared/uid-range.c | 585 | +++ b/src/shared/uid-range.c |
375 | @@ -9,6 +9,7 @@ | 586 | @@ -9,6 +9,7 @@ |
376 | #include "sort-util.h" | 587 | #include "sort-util.h" |
377 | #include "uid-range.h" | 588 | #include "uid-range.h" |
378 | #include "user-util.h" | 589 | #include "user-util.h" |
379 | +#include "missing.h" | 590 | +#include "missing_stdlib.h" |
380 | 591 | ||
381 | static bool uid_range_intersect(UidRange *range, uid_t start, uid_t nr) { | 592 | static bool uid_range_intersect(UidRange *range, uid_t start, uid_t nr) { |
382 | assert(range); | 593 | assert(range); |
383 | diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c | 594 | diff --git a/src/socket-proxy/socket-proxyd.c b/src/socket-proxy/socket-proxyd.c |
384 | index abbbc9f2d6..6179b5851e 100644 | 595 | index 2fb9c854fa50..58cef31458f7 100644 |
385 | --- a/src/socket-proxy/socket-proxyd.c | 596 | --- a/src/socket-proxy/socket-proxyd.c |
386 | +++ b/src/socket-proxy/socket-proxyd.c | 597 | +++ b/src/socket-proxy/socket-proxyd.c |
387 | @@ -28,6 +28,7 @@ | 598 | @@ -26,6 +26,7 @@ |
388 | #include "socket-util.h" | 599 | #include "socket-util.h" |
389 | #include "string-util.h" | 600 | #include "string-util.h" |
390 | #include "util.h" | 601 | #include "util.h" |
391 | +#include "missing.h" | 602 | +#include "missing_stdlib.h" |
392 | 603 | ||
393 | #define BUFFER_SIZE (256 * 1024) | 604 | #define BUFFER_SIZE (256 * 1024) |
394 | 605 | ||
395 | diff --git a/src/test/test-hexdecoct.c b/src/test/test-hexdecoct.c | 606 | diff --git a/src/test/test-hexdecoct.c b/src/test/test-hexdecoct.c |
396 | index 52217429b1..a05e7782f6 100644 | 607 | index 52217429b154..70708dedf318 100644 |
397 | --- a/src/test/test-hexdecoct.c | 608 | --- a/src/test/test-hexdecoct.c |
398 | +++ b/src/test/test-hexdecoct.c | 609 | +++ b/src/test/test-hexdecoct.c |
399 | @@ -6,6 +6,7 @@ | 610 | @@ -6,6 +6,7 @@ |
400 | #include "hexdecoct.h" | 611 | #include "hexdecoct.h" |
401 | #include "macro.h" | 612 | #include "macro.h" |
402 | #include "string-util.h" | 613 | #include "string-util.h" |
403 | +#include "missing.h" | 614 | +#include "missing_stdlib.h" |
404 | 615 | ||
405 | static void test_hexchar(void) { | 616 | static void test_hexchar(void) { |
406 | assert_se(hexchar(0xa) == 'a'); | 617 | assert_se(hexchar(0xa) == 'a'); |
407 | diff --git a/src/udev/udev-builtin-path_id.c b/src/udev/udev-builtin-path_id.c | 618 | diff --git a/src/udev/udev-builtin-path_id.c b/src/udev/udev-builtin-path_id.c |
408 | index e8f1ce1354..8693cb02a4 100644 | 619 | index ca38f5608791..9d8cf4d2807b 100644 |
409 | --- a/src/udev/udev-builtin-path_id.c | 620 | --- a/src/udev/udev-builtin-path_id.c |
410 | +++ b/src/udev/udev-builtin-path_id.c | 621 | +++ b/src/udev/udev-builtin-path_id.c |
411 | @@ -23,6 +23,7 @@ | 622 | @@ -22,6 +22,7 @@ |
412 | #include "strv.h" | 623 | #include "strv.h" |
413 | #include "sysexits.h" | 624 | #include "sysexits.h" |
414 | #include "udev-builtin.h" | 625 | #include "udev-builtin.h" |
415 | +#include "missing.h" | 626 | +#include "missing_stdlib.h" |
416 | 627 | ||
417 | _printf_(2,3) | 628 | _printf_(2,3) |
418 | static void path_prepend(char **path, const char *fmt, ...) { | 629 | static void path_prepend(char **path, const char *fmt, ...) { |
419 | diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c | 630 | diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c |
420 | index 8cfa2cdf23..b0670c77ec 100644 | 631 | index 58d484280aa5..90eab6806b55 100644 |
421 | --- a/src/udev/udev-event.c | 632 | --- a/src/udev/udev-event.c |
422 | +++ b/src/udev/udev-event.c | 633 | +++ b/src/udev/udev-event.c |
423 | @@ -35,6 +35,7 @@ | 634 | @@ -34,6 +34,7 @@ |
424 | #include "udev-util.h" | 635 | #include "udev-util.h" |
425 | #include "udev-watch.h" | 636 | #include "udev-watch.h" |
426 | #include "user-util.h" | 637 | #include "user-util.h" |
427 | +#include "missing.h" | 638 | +#include "missing_stdlib.h" |
428 | 639 | ||
429 | typedef struct Spawn { | 640 | typedef struct Spawn { |
430 | sd_device *device; | 641 | sd_device *device; |
431 | diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c | 642 | diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c |
432 | index 1642f10535..fe2aa75478 100644 | 643 | index 6168b332d3b2..245fe0a64d22 100644 |
433 | --- a/src/udev/udev-rules.c | 644 | --- a/src/udev/udev-rules.c |
434 | +++ b/src/udev/udev-rules.c | 645 | +++ b/src/udev/udev-rules.c |
435 | @@ -28,6 +28,7 @@ | 646 | @@ -30,6 +30,7 @@ |
436 | #include "udev-event.h" | ||
437 | #include "udev-rules.h" | 647 | #include "udev-rules.h" |
438 | #include "user-util.h" | 648 | #include "user-util.h" |
439 | +#include "missing.h" | 649 | #include "virt.h" |
650 | +#include "missing_stdlib.h" | ||
440 | 651 | ||
441 | #define RULES_DIRS (const char* const*) CONF_PATHS_STRV("udev/rules.d") | 652 | #define RULES_DIRS (const char* const*) CONF_PATHS_STRV("udev/rules.d") |
442 | 653 | ||