Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst hide disklabel_non_bootable() under NO_DISK...
details: https://anonhg.NetBSD.org/src/rev/66714ef5a930
branches: trunk
changeset: 848217:66714ef5a930
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Jan 21 06:44:40 2020 +0000
description:
hide disklabel_non_bootable() under NO_DISKLABEL_BOOT like the usage.
should fix most builds.
diffstat:
usr.sbin/sysinst/disklabel.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r e43baffaff72 -r 66714ef5a930 usr.sbin/sysinst/disklabel.c
--- a/usr.sbin/sysinst/disklabel.c Tue Jan 21 05:05:22 2020 +0000
+++ b/usr.sbin/sysinst/disklabel.c Tue Jan 21 06:44:40 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disklabel.c,v 1.31 2020/01/20 21:26:35 martin Exp $ */
+/* $NetBSD: disklabel.c,v 1.32 2020/01/21 06:44:40 mrg Exp $ */
/*
* Copyright 2018 The NetBSD Foundation, Inc.
@@ -123,12 +123,14 @@
return parts->l.d_secpercyl;
}
+#ifdef NO_DISKLABEL_BOOT
static bool
disklabel_non_bootable(const char *disk)
{
return false;
}
+#endif
static struct disk_partitions *
disklabel_parts_new(const char *dev, daddr_t start, daddr_t len,
Home |
Main Index |
Thread Index |
Old Index