On glibc 2.25, sys/sysmacros.h needs to be included for makedev, major and minor. Signed-off-by: Felix Fietkau <nbd@nbd.name>
@@ -31,6 +31,7 @@
#include <sys/swap.h>
#include <sys/mount.h>
#include <sys/wait.h>
+#include <sys/sysmacros.h>
#include <linux/fs.h>
@@ -16,6 +16,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <stdio.h>
#include <string.h>
@@ -15,6 +15,7 @@
#include "libfstools.h"
@@ -22,6 +22,7 @@
#define PROGRAM_NAME "libubi"
#include <stdlib.h>