Browse Source

add missing includes

Including sys/sysmacros.h is now necessary for makedev() on glibc 2.25.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Felix Fietkau 7 years ago
parent
commit
f13e12cc86
3 changed files with 3 additions and 0 deletions
  1. 1 0
      initd/early.c
  2. 1 0
      initd/mkdev.c
  3. 1 0
      plug/hotplug.c

+ 1 - 0
initd/early.c

@@ -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>

+ 1 - 0
initd/mkdev.c

@@ -16,6 +16,7 @@
 
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <sys/sysmacros.h>
 
 #include <stdio.h>
 #include <string.h>

+ 1 - 0
plug/hotplug.c

@@ -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>