summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/dev/drivers/block/genhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/dev/drivers/block/genhd.c b/linux/dev/drivers/block/genhd.c
index 2eb221b..3946b39 100644
--- a/linux/dev/drivers/block/genhd.c
+++ b/linux/dev/drivers/block/genhd.c
@@ -111,7 +111,7 @@ static void add_partition (struct gendisk *hd, int minor, int start, int size)
printk(" %s", disk_name(hd, minor, buf));
}
-#ifdef MACH
+#if defined (MACH) && defined (CONFIG_BSD_DISKLABEL)
static int mach_minor;
static void
add_bsd_partition (struct gendisk *hd, int minor, int slice,