summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2026-02-09 11:29:58 +0000
committerDaniel Golle2026-02-09 11:31:44 +0000
commit96c827fe5f04c8871c086e9d8205bc32371add9e (patch)
tree1f8f7ffaf9236f68cbb902e8ac0d92a973b31344
parent6b10c71c19b41e1052ddc0755f749a38dab871f7 (diff)
coldplug: fix missing header include
makedev() is defined in header sys/sysmacros.h which needs to be included to not break the build. Fixes: 58d7aaa ("initd/coldplug: create /dev/null before running udevtrigger") Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--plug/coldplug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plug/coldplug.c b/plug/coldplug.c
index 1925402..557d069 100644
--- a/plug/coldplug.c
+++ b/plug/coldplug.c
@@ -15,6 +15,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/mount.h>
+#include <sys/sysmacros.h>
#include <stdlib.h>
#include <unistd.h>