mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 00:20:29 +00:00
- 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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105791
|
@ -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 a new issue