add missing includes
authorFelix Fietkau <nbd@nbd.name>
Sat, 11 Feb 2017 14:43:36 +0000 (15:43 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sat, 11 Feb 2017 14:43:38 +0000 (15:43 +0100)
Including sys/sysmacros.h is now necessary for makedev() on glibc 2.25.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
initd/early.c
initd/mkdev.c
plug/hotplug.c

index bf519f6..7028ff8 100644 (file)
@@ -15,6 +15,7 @@
 #include <sys/mount.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 
 #include <stdio.h>
 #include <fcntl.h>
index e826707..44101aa 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 
 #include <stdio.h>
 #include <string.h>
index ae972f6..c8bea1b 100644 (file)
@@ -15,6 +15,7 @@
 #include <sys/stat.h>
 #include <sys/socket.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 
 #include <linux/types.h>
 #include <linux/netlink.h>