]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd-network/test-acd.c
tree-wide: make sure net/if.h is included before any linux/ header
[thirdparty/systemd.git] / src / libsystemd-network / test-acd.c
index 73105f5a04104fa84ac5613ee7c0ec9fdf629881..6ed7260a72bec8cd0496379e3b3a5466aa6f0e4a 100644 (file)
@@ -1,11 +1,12 @@
 /* SPDX-License-Identifier: LGPL-2.1-or-later */
 
+/* Make sure the net/if.h header is included before any linux/ one */
+#include <net/if.h>
 #include <errno.h>
+#include <linux/veth.h>
 #include <stdlib.h>
 #include <unistd.h>
 
-#include <linux/veth.h>
-#include <net/if.h>
 
 #include "sd-event.h"
 #include "sd-ipv4acd.h"
@@ -13,7 +14,6 @@
 
 #include "in-addr-util.h"
 #include "tests.h"
-#include "util.h"
 
 static void acd_handler(sd_ipv4acd *acd, int event, void *userdata) {
         assert_se(acd);