add missing includes
authorFelix Fietkau <nbd@nbd.name>
Sat, 11 Feb 2017 15:01:50 +0000 (16:01 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sat, 11 Feb 2017 15:01:51 +0000 (16:01 +0100)
On glibc 2.25, sys/sysmacros.h needs to be included for makedev, major
and minor.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
block.c
libblkid-tiny/mkdev.c
libfstools/find.c
libubi/libubi.c

diff --git a/block.c b/block.c
index 05f84aac9e2d2dcdfd26cfbbbf87d7e41cfbb895..7db30acb205d5c99e6574160f39602b127cb4fa3 100644 (file)
--- a/block.c
+++ b/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>
 
index f1d504f920be6a2b6c817e1f3e9d540693d869ac..a35722b9aedeeef40a30445b1a619438d612e201 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 52bc51f130d0db9120659a79706d098cd0b4ea7f..190fa81ad564d75c56ba39b48df33f2729283789 100644 (file)
@@ -15,6 +15,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
+#include <sys/sysmacros.h>
 
 #include "libfstools.h"
 
index d1f2a8b143c2bfa3e3955d5a7fe1d63a489c8b4d..3328ac8eab7d34bfa8a14e92d8151781f9a469fc 100644 (file)
@@ -22,6 +22,7 @@
 
 #define PROGRAM_NAME "libubi"
 
+#include <sys/sysmacros.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>