- The GEOM system does not work on pc98.
- Fix to build w/o the HAVE_GEOM option.
This commit is contained in:
parent
43b6e2a273
commit
7bec978084
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user