summaryrefslogtreecommitdiffstats
path: root/sys/sys/disklabel.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-03-23 16:03:13 +0000
committerphk <phk@FreeBSD.org>2002-03-23 16:03:13 +0000
commit96faa7809998deb941d465e675415b91777df26e (patch)
treee32283600abafc421c904c84302c50ff064e589d /sys/sys/disklabel.h
parent8e5d7bb37a4e4d8ae1e1fefe6ad47b7c8865400d (diff)
downloadFreeBSD-src-96faa7809998deb941d465e675415b91777df26e.zip
FreeBSD-src-96faa7809998deb941d465e675415b91777df26e.tar.gz
Hide the ugly d_boot[01] from the kernel.
Diffstat (limited to 'sys/sys/disklabel.h')
-rw-r--r--sys/sys/disklabel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h
index af136d8..23054c1 100644
--- a/sys/sys/disklabel.h
+++ b/sys/sys/disklabel.h
@@ -110,14 +110,18 @@ struct disklabel {
*/
union {
char un_d_packname[16]; /* pack identifier */
+#ifndef _KERNEL
struct {
char *un_d_boot0; /* primary bootstrap name */
char *un_d_boot1; /* secondary bootstrap name */
} un_b;
+#endif
} d_un;
#define d_packname d_un.un_d_packname
+#ifndef _KERNEL
#define d_boot0 d_un.un_b.un_d_boot0
#define d_boot1 d_un.un_b.un_d_boot1
+#endif
/* disk geometry: */
u_int32_t d_secsize; /* # of bytes per sector */
OpenPOWER on IntegriCloud