summaryrefslogtreecommitdiffstats
path: root/include/blkdev.h
diff options
context:
space:
mode:
authorRuediger Meier2016-02-22 16:49:15 +0100
committerRuediger Meier2016-03-07 23:17:12 +0100
commite210cfc8c8787c57129113ea21233372f6dfa684 (patch)
tree7a50c4b47c043634a53223c04aa12e11371308d3 /include/blkdev.h
parentmisc: again fixing many printf format strings (diff)
downloadkernel-qcow2-util-linux-e210cfc8c8787c57129113ea21233372f6dfa684.tar.gz
kernel-qcow2-util-linux-e210cfc8c8787c57129113ea21233372f6dfa684.tar.xz
kernel-qcow2-util-linux-e210cfc8c8787c57129113ea21233372f6dfa684.zip
lib: include sys/stat.h for struct stat
Compiler warning: 'struct stat' will not be visible outside of this function [-Wvisibility] Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'include/blkdev.h')
-rw-r--r--include/blkdev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h
index 46fb2cef0..62eda82af 100644
--- a/include/blkdev.h
+++ b/include/blkdev.h
@@ -14,6 +14,7 @@
#endif
#include <fcntl.h>
#include <unistd.h>
+#include <sys/stat.h>
#ifdef HAVE_SYS_MKDEV_H
# include <sys/mkdev.h> /* major and minor on Solaris */