diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-04 08:26:09 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-12-04 10:00:34 +0100 |
commit | 36dd5ffd5d83dc9ee7fa22514eb5f9068f882beb (patch) | |
tree | 8ee43d311bdc6d491f4ea249db97d3b0f5a32b58 | |
parent | missing: move char{16,32}_t definitions to missing_type.h (diff) | |
download | systemd-36dd5ffd5d83dc9ee7fa22514eb5f9068f882beb.tar.xz systemd-36dd5ffd5d83dc9ee7fa22514eb5f9068f882beb.zip |
util: drop missing.h from util.h
27 files changed, 27 insertions, 2 deletions
diff --git a/src/analyze/analyze-security.c b/src/analyze/analyze-security.c index 3d2eeade74..ed20dc504a 100644 --- a/src/analyze/analyze-security.c +++ b/src/analyze/analyze-security.c @@ -12,6 +12,7 @@ #include "in-addr-util.h" #include "locale-util.h" #include "macro.h" +#include "missing.h" #include "parse-util.h" #include "path-util.h" #include "pretty-print.h" diff --git a/src/basic/capability-util.h b/src/basic/capability-util.h index e0e0b1c0fa..02c7d5c3e2 100644 --- a/src/basic/capability-util.h +++ b/src/basic/capability-util.h @@ -7,6 +7,7 @@ #include <sys/types.h> #include "macro.h" +#include "missing_capability.h" #include "util.h" #define CAP_ALL (uint64_t) -1 diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h index 5060a3f6ad..b009ea5bfa 100644 --- a/src/basic/missing_syscall.h +++ b/src/basic/missing_syscall.h @@ -3,6 +3,8 @@ /* Missing glibc definitions to access certain kernel APIs */ +#include <fcntl.h> +#include <sys/syscall.h> #include <sys/types.h> #include "missing_keyctl.h" diff --git a/src/basic/time-util.c b/src/basic/time-util.c index f1f52f1beb..12c1fc71df 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -20,6 +20,7 @@ #include "io-util.h" #include "log.h" #include "macro.h" +#include "missing.h" #include "parse-util.h" #include "path-util.h" #include "process-util.h" diff --git a/src/basic/util.h b/src/basic/util.h index 43f4081190..01118bb895 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -25,7 +25,6 @@ #include "format-util.h" #include "macro.h" -#include "missing.h" #include "time-util.h" size_t page_size(void) _pure_; diff --git a/src/fuzz/fuzz-journald-stream.c b/src/fuzz/fuzz-journald-stream.c index 247c0889bc..5d6c8eb8ca 100644 --- a/src/fuzz/fuzz-journald-stream.c +++ b/src/fuzz/fuzz-journald-stream.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ #include <linux/sockios.h> +#include <sys/ioctl.h> #include "fd-util.h" #include "fuzz.h" diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 3992b0e744..c1f9e27523 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -17,6 +17,7 @@ #include "hostname-util.h" #include "id128-util.h" #include "main-func.h" +#include "missing_capability.h" #include "os-util.h" #include "parse-util.h" #include "path-util.h" diff --git a/src/libsystemd-network/lldp-neighbor.c b/src/libsystemd-network/lldp-neighbor.c index 83b98ba492..952197e714 100644 --- a/src/libsystemd-network/lldp-neighbor.c +++ b/src/libsystemd-network/lldp-neighbor.c @@ -7,6 +7,7 @@ #include "in-addr-util.h" #include "lldp-internal.h" #include "lldp-neighbor.h" +#include "missing.h" #include "unaligned.h" static void lldp_neighbor_id_hash_func(const LLDPNeighborID *id, struct siphash *state) { diff --git a/src/libsystemd-network/lldp-network.c b/src/libsystemd-network/lldp-network.c index a4020d1e19..870584c0db 100644 --- a/src/libsystemd-network/lldp-network.c +++ b/src/libsystemd-network/lldp-network.c @@ -5,6 +5,7 @@ #include "fd-util.h" #include "lldp-network.h" +#include "missing.h" #include "socket-util.h" int lldp_network_bind_raw_socket(int ifindex) { diff --git a/src/locale/localed.c b/src/locale/localed.c index 79a6d3e4d0..f851d35a08 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -20,6 +20,7 @@ #include "locale-util.h" #include "macro.h" #include "main-func.h" +#include "missing_capability.h" #include "path-util.h" #include "selinux-util.h" #include "signal-util.h" diff --git a/src/login/logind-button.c b/src/login/logind-button.c index 7c9cf05dd7..daffbf0668 100644 --- a/src/login/logind-button.c +++ b/src/login/logind-button.c @@ -12,6 +12,7 @@ #include "alloc-util.h" #include "fd-util.h" #include "logind-button.h" +#include "missing_input.h" #include "string-util.h" #include "util.h" diff --git a/src/login/logind-dbus.c b/src/login/logind-dbus.c index 0e441b5631..766a9236be 100644 --- a/src/login/logind-dbus.c +++ b/src/login/logind-dbus.c @@ -25,6 +25,7 @@ #include "format-util.h" #include "fs-util.h" #include "logind.h" +#include "missing_capability.h" #include "mkdir.h" #include "path-util.h" #include "process-util.h" diff --git a/src/login/logind-seat-dbus.c b/src/login/logind-seat-dbus.c index 8002901cf7..6ee5a1c95d 100644 --- a/src/login/logind-seat-dbus.c +++ b/src/login/logind-seat-dbus.c @@ -9,6 +9,7 @@ #include "bus-util.h" #include "logind-seat.h" #include "logind.h" +#include "missing_capability.h" #include "strv.h" #include "user-util.h" #include "util.h" diff --git a/src/login/logind-session-dbus.c b/src/login/logind-session-dbus.c index 4eae281bd8..df5bfba982 100644 --- a/src/login/logind-session-dbus.c +++ b/src/login/logind-session-dbus.c @@ -11,6 +11,7 @@ #include "logind-session-device.h" #include "logind-session.h" #include "logind.h" +#include "missing_capability.h" #include "signal-util.h" #include "stat-util.h" #include "strv.h" diff --git a/src/login/logind-user-dbus.c b/src/login/logind-user-dbus.c index 9620fb0cfc..fcaeba13f6 100644 --- a/src/login/logind-user-dbus.c +++ b/src/login/logind-user-dbus.c @@ -8,6 +8,7 @@ #include "format-util.h" #include "logind-user.h" #include "logind.h" +#include "missing_capability.h" #include "signal-util.h" #include "strv.h" #include "user-util.h" diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 2be63f502e..0225f72bdb 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -10,6 +10,7 @@ #include "fd-util.h" #include "hostname-util.h" #include "in-addr-util.h" +#include "missing_network.h" #include "network-internal.h" #include "networkd-manager.h" #include "networkd-network.h" diff --git a/src/network/networkd-route.c b/src/network/networkd-route.c index a99eae86bf..5553a7e3bd 100644 --- a/src/network/networkd-route.c +++ b/src/network/networkd-route.c @@ -5,6 +5,7 @@ #include "alloc-util.h" #include "conf-parser.h" #include "in-addr-util.h" +#include "missing_network.h" #include "netlink-util.h" #include "networkd-manager.h" #include "networkd-route.h" diff --git a/src/network/networkd-routing-policy-rule.h b/src/network/networkd-routing-policy-rule.h index 2114eb4c3d..0e4215bffd 100644 --- a/src/network/networkd-routing-policy-rule.h +++ b/src/network/networkd-routing-policy-rule.h @@ -7,6 +7,7 @@ #include "in-addr-util.h" #include "conf-parser.h" +#include "missing_fib_rules.h" typedef struct RoutingPolicyRule RoutingPolicyRule; diff --git a/src/nspawn/nspawn-settings.h b/src/nspawn/nspawn-settings.h index ba83826bbb..cb082d1635 100644 --- a/src/nspawn/nspawn-settings.h +++ b/src/nspawn/nspawn-settings.h @@ -8,6 +8,7 @@ #include "conf-parser.h" #include "macro.h" +#include "missing.h" #include "nspawn-expose-ports.h" #include "nspawn-mount.h" diff --git a/src/resolve/resolvectl.c b/src/resolve/resolvectl.c index 5f42c6d021..1e3fabc450 100644 --- a/src/resolve/resolvectl.c +++ b/src/resolve/resolvectl.c @@ -16,6 +16,7 @@ #include "gcrypt-util.h" #include "in-addr-util.h" #include "main-func.h" +#include "missing.h" #include "netlink-util.h" #include "pager.h" #include "parse-util.h" diff --git a/src/shared/serialize.c b/src/shared/serialize.c index 20d2e9fb04..0333f87b7b 100644 --- a/src/shared/serialize.c +++ b/src/shared/serialize.c @@ -6,6 +6,7 @@ #include "env-util.h" #include "escape.h" #include "fileio.h" +#include "missing.h" #include "parse-util.h" #include "process-util.h" #include "serialize.h" diff --git a/src/shared/sleep-config.c b/src/shared/sleep-config.c index 9ea88a37b4..1c94714f8a 100644 --- a/src/shared/sleep-config.c +++ b/src/shared/sleep-config.c @@ -9,6 +9,7 @@ #include <stddef.h> #include <stdio.h> #include <string.h> +#include <sys/ioctl.h> #include <sys/utsname.h> #include <syslog.h> #include <unistd.h> diff --git a/src/test/test-process-util.c b/src/test/test-process-util.c index ae0f1a564d..5c87db08f5 100644 --- a/src/test/test-process-util.c +++ b/src/test/test-process-util.c @@ -17,6 +17,7 @@ #include "fd-util.h" #include "log.h" #include "macro.h" +#include "missing.h" #include "parse-util.h" #include "process-util.h" #include "signal-util.h" diff --git a/src/test/test-rlimit-util.c b/src/test/test-rlimit-util.c index 15701b2712..771719a267 100644 --- a/src/test/test-rlimit-util.c +++ b/src/test/test-rlimit-util.c @@ -5,6 +5,7 @@ #include "alloc-util.h" #include "capability-util.h" #include "macro.h" +#include "missing.h" #include "rlimit-util.h" #include "string-util.h" #include "util.h" diff --git a/src/test/test-util.c b/src/test/test-util.c index eeee09a7d2..3c1b5f9b41 100644 --- a/src/test/test-util.c +++ b/src/test/test-util.c @@ -8,6 +8,7 @@ #include "def.h" #include "fileio.h" #include "fs-util.h" +#include "missing_syscall.h" #include "parse-util.h" #include "process-util.h" #include "raw-clone.h" diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index e634481524..5a432fea24 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -20,6 +20,7 @@ #include "hashmap.h" #include "list.h" #include "main-func.h" +#include "missing_capability.h" #include "path-util.h" #include "selinux-util.h" #include "signal-util.h" diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index 6703a9d7a3..ac66ffd047 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -13,7 +13,7 @@ #include "fd-util.h" #include "link-config.h" #include "log.h" -#include "missing.h" +#include "missing_network.h" #include "netlink-util.h" #include "network-internal.h" #include "parse-util.h" |