From: Patrick Steinhardt Date: Wed, 26 Sep 2018 06:23:08 +0000 (+0200) Subject: lsblk: fix unknown type `stat` caused by missing header X-Git-Tag: v2.33-rc2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6529212d5b0cbef222c81f7ecb58444e21acb417;p=thirdparty%2Futil-linux.git 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 --- 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