summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_diskslice.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-01 07:24:55 +0000
committerphk <phk@FreeBSD.org>2002-10-01 07:24:55 +0000
commit19150ba4f87b68b4bee90b657affe9c3181a6a37 (patch)
tree64a86680f5023850204fec859db473fd67342761 /sys/kern/subr_diskslice.c
parent85e12cff3b67d0264814b00c269cdae05b684f62 (diff)
downloadFreeBSD-src-19150ba4f87b68b4bee90b657affe9c3181a6a37.zip
FreeBSD-src-19150ba4f87b68b4bee90b657affe9c3181a6a37.tar.gz
Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1:
Peter had repocopied sys/disklabel.h to sys/diskpc98.h and sys/diskmbr.h. These two new copies are still intact copies of disklabel.h and therefore protected by #ifndef _SYS_DISKLABEL_H_ so #including them in programs which already include <sys.disklabel.h> is currently a no-op. This commit adds a number of such #includes. Once I have verified that I have fixed all the places which need fixing, I will commit the updated versions of the three #include files. Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/kern/subr_diskslice.c')
-rw-r--r--sys/kern/subr_diskslice.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/kern/subr_diskslice.c b/sys/kern/subr_diskslice.c
index 1b7f9e7..25b646a 100644
--- a/sys/kern/subr_diskslice.c
+++ b/sys/kern/subr_diskslice.c
@@ -53,6 +53,11 @@
#include <sys/disk.h>
#include <sys/disklabel.h>
#include <sys/diskslice.h>
+#if defined(PC98) && !defined(PC98_ATCOMPAT)
+#include <sys/diskpc98.h>
+#else
+#include <sys/diskmbr.h>
+#endif
#include <sys/fcntl.h>
#include <sys/malloc.h>
#include <sys/stat.h>
OpenPOWER on IntegriCloud