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 bf519f615528033e5017534ed700862c7b66e55d..7028ff8a4b79e0d5f29573d29855a21b8cae1bf8 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 e82670723a6084682b85f396359c077502227ea2..44101aa12df5e5a102b626d2eb41f1a10a40e2ad 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 ae972f608a95622500d69ce9428808ed81c6c4fb..c8bea1b75b958284968fd6663a8fcb0c9a9fab2a 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>