]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd-network-gperf.gperf: Add various missing includes
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 30 Apr 2025 20:39:07 +0000 (22:39 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 1 May 2025 14:58:12 +0000 (16:58 +0200)
We currently include these transitively but to allow using IWYU to
remove headers later, let's add these as direct includes so the IWYU
changes don't break compilation.

src/network/networkd-network-gperf.gperf

index 2b61f3b744097dd99e741562314019c4cba73da8..aa99829638c035973042f79835ae456e1a2004c6 100644 (file)
@@ -4,12 +4,14 @@ _Pragma("GCC diagnostic ignored \"-Wimplicit-fallthrough\"")
 #if __GNUC__ >= 15
 _Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"")
 #endif
+#include <linux/can/netlink.h>
 #include <netinet/icmp6.h>
 #include <stddef.h>
 
 #include "conf-parser.h"
 #include "in-addr-prefix-util.h"
 #include "net-condition.h"
+#include "netif-sriov.h"
 #include "networkd-address-generation.h"
 #include "networkd-address-label.h"
 #include "networkd-address.h"
@@ -38,6 +40,7 @@ _Pragma("GCC diagnostic ignored \"-Wzero-as-null-pointer-constant\"")
 #include "networkd-routing-policy-rule.h"
 #include "networkd-sriov.h"
 #include "qdisc.h"
+#include "socket-util.h"
 #include "tclass.h"
 #include "vlan-util.h"