util-linux: change include order to fix build error
authorFelix Fietkau <nbd@nbd.name>
Wed, 23 Apr 2025 08:04:22 +0000 (10:04 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 23 Apr 2025 08:29:14 +0000 (10:29 +0200)
Prevent accidentally including an old version of uuid.h, which causes
the build to fail because of missing definitions.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
tools/util-linux/patches/100-fix_include_order.patch [new file with mode: 0644]

diff --git a/tools/util-linux/patches/100-fix_include_order.patch b/tools/util-linux/patches/100-fix_include_order.patch
new file mode 100644 (file)
index 0000000..c7e4311
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/libuuid/src/gen_uuid.c
++++ b/libuuid/src/gen_uuid.c
+@@ -86,8 +86,8 @@
+ #include <signal.h>
+-#include "all-io.h"
+ #include "uuidP.h"
++#include "all-io.h"
+ #include "uuidd.h"
+ #include "randutils.h"
+ #include "strutils.h"