summaryrefslogtreecommitdiffstats
path: root/fdisk
diff options
context:
space:
mode:
authorMatthias Koenig2008-11-06 15:24:24 +0100
committerKarel Zak2008-11-13 23:49:14 +0100
commit6ee3f81faedf297f087bd6c83456fef5898d490e (patch)
treea9f7eae40c4bc661a15db3f148e782575b0818b2 /fdisk
parentnamei: add --owners and --long options (diff)
downloadkernel-qcow2-util-linux-6ee3f81faedf297f087bd6c83456fef5898d490e.tar.gz
kernel-qcow2-util-linux-6ee3f81faedf297f087bd6c83456fef5898d490e.tar.xz
kernel-qcow2-util-linux-6ee3f81faedf297f087bd6c83456fef5898d490e.zip
fdisk: add some missing includes
Currently these missing includes prevent that HDIO_GETGEO is defined, so is_probably_full_disk always uses the "silly heuristic" method. [kzak@redhat.com: add also unistd.h] Signed-off-by: Matthias Koenig <mkoenig@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisk')
-rw-r--r--fdisk/partname.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fdisk/partname.c b/fdisk/partname.c
index 7c71c0ddb..2d629edfe 100644
--- a/fdisk/partname.c
+++ b/fdisk/partname.c
@@ -1,6 +1,10 @@
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#include <sys/types.h>
+#include <fcntl.h>
+#include <unistd.h>
+#include "blkdev.h"
#include "common.h"
/*