Unbreak building efiboot with MK_ZFS == no

Wrap `efi_zfs_is_preferred` with `#ifdef EFI_ZFS_BOOT`.

Reported by:	Guy Yur <guyyur@gmail.com>
This commit is contained in:
Enji Cooper 2017-10-07 17:40:31 +00:00
parent 714d3ee05b
commit 851fe8f6ed

View File

@ -74,12 +74,13 @@ EFI_GUID inputid = SIMPLE_TEXT_INPUT_PROTOCOL;
static EFI_LOADED_IMAGE *img;
#ifdef EFI_ZFS_BOOT
bool
efi_zfs_is_preferred(EFI_HANDLE *h)
{
return (h == img->DeviceHandle);
}
#endif
static int
has_keyboard(void)