Fix minor()/major() build failure due to glibc 2.28 glibc 2.28 no longer includes from , and therefore must be included explicitly when major()/minor() are used. This commit directly includes into cramfsck.c and mkcramfs.c files where minor() and major() macros are used. Signed-off-by: Giulio Benetti --- diff -urpN host-cramfs-1.1.orig/cramfsck.c host-cramfs-1.1/cramfsck.c --- host-cramfs-1.1.orig/cramfsck.c 2018-09-27 16:48:09.704782201 +0200 +++ host-cramfs-1.1/cramfsck.c 2018-09-27 16:49:12.841138657 +0200 @@ -38,6 +38,7 @@ #define _GNU_SOURCE #include +#include #include #include #include diff -urpN host-cramfs-1.1.orig/mkcramfs.c host-cramfs-1.1/mkcramfs.c --- host-cramfs-1.1.orig/mkcramfs.c 2018-09-27 16:48:09.712782246 +0200 +++ host-cramfs-1.1/mkcramfs.c 2018-09-27 16:48:59.777064921 +0200 @@ -24,6 +24,7 @@ #define _GNU_SOURCE #include +#include #include #include #include