diff options
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/disk.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <paths.h> #include "libdisk.h" +#ifndef PC98 #define HAVE_GEOM +#endif #ifdef HAVE_GEOM #include <ctype.h> #include <errno.h> @@ -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; |