From 59e14a9b80d9d15eeb06ec206fc9654f228244d7 Mon Sep 17 00:00:00 2001 From: nyan Date: Wed, 23 Oct 2002 13:00:09 +0000 Subject: - The GEOM system does not work on pc98. - Fix to build w/o the HAVE_GEOM option. --- lib/libdisk/disk.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/libdisk') diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c index 22c8d2b..329e933 100644 --- a/lib/libdisk/disk.c +++ b/lib/libdisk/disk.c @@ -28,7 +28,9 @@ __FBSDID("$FreeBSD$"); #include #include "libdisk.h" +#ifndef PC98 #define HAVE_GEOM +#endif #ifdef HAVE_GEOM #include #include @@ -826,8 +828,10 @@ pc98_mo_done: Fixup_Names(d); return d; bad: +#ifdef HAVE_GEOM if (confxml != NULL) free(confxml); +#endif if (fd >= 0) close(fd); return NULL; -- cgit v1.1