]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsblk: fix unknown type `stat` caused by missing header
authorPatrick Steinhardt <ps@pks.im>
Wed, 26 Sep 2018 06:23:08 +0000 (08:23 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 4 Oct 2018 09:56:35 +0000 (11:56 +0200)
commit6529212d5b0cbef222c81f7ecb58444e21acb417
tree040de142ffb5186494888a3f135b605899800733
parent7a715f731a7c6c770cc0d26fceca8fca7fccf3d7
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 <ps@pks.im>
misc-utils/lsblk.h