]> err.no Git - util-linux/commitdiff
fdisk: add some missing includes
authorMatthias Koenig <mkoenig@suse.de>
Thu, 6 Nov 2008 14:24:24 +0000 (15:24 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 13 Nov 2008 22:49:14 +0000 (23:49 +0100)
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>
fdisk/partname.c

index 7c71c0ddb2c97d177523e2c9e7f8d24ed648604e..2d629edfe09ac81171a6dc9a0ff186019ab49752 100644 (file)
@@ -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"
 
 /*