Browse Source

add missing includes

On glibc 2.25, sys/sysmacros.h needs to be included for makedev, major
and minor.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Felix Fietkau 7 years ago
parent
commit
7d78836dac
4 changed files with 4 additions and 0 deletions
  1. 1 0
      block.c
  2. 1 0
      libblkid-tiny/mkdev.c
  3. 1 0
      libfstools/find.c
  4. 1 0
      libubi/libubi.c

+ 1 - 0
block.c

@@ -31,6 +31,7 @@
 #include <sys/swap.h>
 #include <sys/mount.h>
 #include <sys/wait.h>
+#include <sys/sysmacros.h>
 
 #include <linux/fs.h>
 

+ 1 - 0
libblkid-tiny/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
libfstools/find.c

@@ -15,6 +15,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 
 #include "libfstools.h"
 

+ 1 - 0
libubi/libubi.c

@@ -22,6 +22,7 @@
 
 #define PROGRAM_NAME "libubi"
 
+#include <sys/sysmacros.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>