- The GEOM system does not work on pc98.

- Fix to build w/o the HAVE_GEOM option.
This commit is contained in:
Yoshihiro Takahashi 2002-10-23 13:00:09 +00:00
parent 43b6e2a273
commit 7bec978084
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105791

View file

@ -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 @@ Int_Open_Disk(const char *name, u_long size)
Fixup_Names(d);
return d;
bad:
#ifdef HAVE_GEOM
if (confxml != NULL)
free(confxml);
#endif
if (fd >= 0)
close(fd);
return NULL;