summaryrefslogtreecommitdiffstats
path: root/include/blkdev.h
diff options
context:
space:
mode:
authorKarel Zak2009-03-11 14:00:21 +0100
committerKarel Zak2009-03-11 14:00:21 +0100
commit929f243f79c4fdf3e89dad5134e53bf001598a5e (patch)
tree16f02b38f82ccc64bd7b199c786cc732163ae0a1 /include/blkdev.h
parentflock: add NLS support, remove tailing white-spaces (diff)
downloadkernel-qcow2-util-linux-929f243f79c4fdf3e89dad5134e53bf001598a5e.tar.gz
kernel-qcow2-util-linux-929f243f79c4fdf3e89dad5134e53bf001598a5e.tar.xz
kernel-qcow2-util-linux-929f243f79c4fdf3e89dad5134e53bf001598a5e.zip
lib: add is_whole_disk() from fdisk code
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include/blkdev.h')
-rw-r--r--include/blkdev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/blkdev.h b/include/blkdev.h
index 3cca79b94..9d9453bc7 100644
--- a/include/blkdev.h
+++ b/include/blkdev.h
@@ -3,6 +3,8 @@
#include <sys/types.h>
#include <sys/ioctl.h>
+#include <fcntl.h>
+#include <unistd.h>
#define DEFAULT_SECTOR_SIZE 512