From 6529212d5b0cbef222c81f7ecb58444e21acb417 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Wed, 26 Sep 2018 08:23:08 +0200 Subject: [PATCH] lsblk: fix unknown type `stat` caused by missing header The structure `blkdev_cxt` has a `struct stat` member embedded, whose size may not be known on some systems because of a missing include for "sys/stat.h". On glibc-based systems, this header is included transitively via "sys/statvfs.h", but on musl-based systems it is not. Fix the resulting compile error due to unknown size of the struct by including "sys/stat.h". Signed-off-by: Patrick Steinhardt --- misc-utils/lsblk.h | 1 + 1 file changed, 1 insertion(+) diff --git a/misc-utils/lsblk.h b/misc-utils/lsblk.h index 6e0186576c..baad3aa9bb 100644 --- a/misc-utils/lsblk.h +++ b/misc-utils/lsblk.h @@ -8,6 +8,7 @@ #include #include +#include #include #include -- 2.47.2