diff options
author | Patrick Steinhardt | 2018-09-26 08:23:08 +0200 |
---|---|---|
committer | Karel Zak | 2018-10-04 11:56:35 +0200 |
commit | 6529212d5b0cbef222c81f7ecb58444e21acb417 (patch) | |
tree | 040de142ffb5186494888a3f135b605899800733 /misc-utils/lsblk.h | |
parent | libfdisk: fix printf format modifier (diff) | |
download | kernel-qcow2-util-linux-6529212d5b0cbef222c81f7ecb58444e21acb417.tar.gz kernel-qcow2-util-linux-6529212d5b0cbef222c81f7ecb58444e21acb417.tar.xz kernel-qcow2-util-linux-6529212d5b0cbef222c81f7ecb58444e21acb417.zip |
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>
Diffstat (limited to 'misc-utils/lsblk.h')
-rw-r--r-- | misc-utils/lsblk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc-utils/lsblk.h b/misc-utils/lsblk.h index 6e0186576..baad3aa9b 100644 --- a/misc-utils/lsblk.h +++ b/misc-utils/lsblk.h @@ -8,6 +8,7 @@ #include <stdint.h> #include <inttypes.h> +#include <sys/stat.h> #include <sys/statvfs.h> #include <libsmartcols.h> |