Wrap additional new efi code in HAVE_LIBEFI macros

This commit is contained in:
Brian Behlendorf 2008-12-16 15:33:00 -08:00
parent bb20fd94fc
commit 35f607040f
1 changed files with 3 additions and 1 deletions

View File

@ -310,6 +310,7 @@ bootfs_name_valid(const char *pool, char *bootfs)
static boolean_t
pool_uses_efi(nvlist_t *config)
{
#ifdef HAVE_LIBEFI
nvlist_t **child;
uint_t c, children;
@ -321,6 +322,7 @@ pool_uses_efi(nvlist_t *config)
if (pool_uses_efi(child[c]))
return (B_TRUE);
}
#endif
return (B_FALSE);
}
@ -2773,6 +2775,7 @@ zpool_obj_to_path(zpool_handle_t *zhp, uint64_t dsobj, uint64_t obj,
*/
#define NEW_START_BLOCK 256
#ifdef HAVE_LIBEFI
/*
* Read the EFI label from the config, if a label does not exist then
* pass back the error to the caller. If the caller has passed a non-NULL
@ -2809,7 +2812,6 @@ read_efi_label(nvlist_t *config, diskaddr_t *sb)
* determine where a partition starts on a disk in the current
* configuration
*/
#ifdef HAVE_LIBEFI
static diskaddr_t
find_start_block(nvlist_t *config)
{