summaryrefslogtreecommitdiffstats
path: root/src/libudev/libudev-device.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libudev/libudev-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c
index 7b9f54c..50e2459 100644
--- a/src/libudev/libudev-device.c
+++ b/src/libudev/libudev-device.c
@@ -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 <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/sockios.h>
-#include <net/if.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>