From 77a51a2709de1b646ab493f0bf771d896de6efc2 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 29 Dec 2020 16:53:11 +0100 Subject: randomconfig fixes Signed-off-by: Denys Vlasenko --- util-linux/fdisk.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'util-linux/fdisk.c') diff --git a/util-linux/fdisk.c b/util-linux/fdisk.c index 6454baab8..c50ceead1 100644 --- a/util-linux/fdisk.c +++ b/util-linux/fdisk.c @@ -185,8 +185,11 @@ struct hd_geometry { #define HDIO_GETGEO 0x0301 /* get device geometry */ -/* TODO: #if ENABLE_FEATURE_FDISK_WRITABLE */ +/* TODO: just #if ENABLE_FEATURE_FDISK_WRITABLE */ /* (currently fdisk_sun/sgi.c do not have proper WRITABLE #ifs) */ +#if ENABLE_FEATURE_FDISK_WRITABLE \ + || ENABLE_FEATURE_SGI_LABEL \ + || ENABLE_FEATURE_SUN_LABEL static const char msg_building_new_label[] ALIGN1 = "Building a new %s. Changes will remain in memory only,\n" "until you decide to write them. After that the previous content\n" @@ -194,7 +197,7 @@ static const char msg_building_new_label[] ALIGN1 = static const char msg_part_already_defined[] ALIGN1 = "Partition %u is already defined, delete it before re-adding\n"; -/* #endif */ +#endif struct partition { -- cgit v1.2.3