summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle2026-02-09 11:29:58 +0000
committerDaniel Golle2026-03-14 00:29:08 +0000
commit8294471cffee92b7143e8f55240be25233c8f3a6 (patch)
treed12dcb628b1ec3567ec8944eda198455da481ee4
parentfb1c92bc07c68dcf70da0e3e16ccd9f7319bdb61 (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> (cherry picked from commit 96c827fe5f04c8871c086e9d8205bc32371add9e)
-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>