utils: include utils.h last
authorFelix Fietkau <nbd@nbd.name>
Thu, 29 Dec 2022 18:56:08 +0000 (19:56 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 29 Dec 2022 18:56:09 +0000 (19:56 +0100)
Fixes conflict with some system headers that use the fallthrough keyword

Signed-off-by: Felix Fietkau <nbd@nbd.name>
utils.c

diff --git a/utils.c b/utils.c
index 4f40b4b99baf06fe242d55b5908bb0a15f623327..8997b4853b615142ee0ae9ff808d153f2ba9d1fd 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -13,7 +13,6 @@
  */
 #include <string.h>
 #include <stdlib.h>
-#include "utils.h"
 
 #include <arpa/inet.h>
 #include <netinet/in.h>
@@ -23,6 +22,8 @@
 #include <libproc.h>
 #endif
 
+#include "utils.h"
+
 void
 __vlist_simple_init(struct vlist_simple_tree *tree, int offset)
 {