pkgsrc/sysutils/grub2/patches/patch-util_getroot.c
maya 0e99da3ee7 grub2: be consistent about ifdef macros to fix the build for the weird case
of netbsd current broken zfs userland exposure.
2018-11-25 15:51:01 +00:00

16 lines
469 B
C

$NetBSD: patch-util_getroot.c,v 1.3 2018/11/25 15:51:01 maya Exp $
Be consistent about macros. The required headers are only
included if both libzfs and libnvpair are detected.
--- util/getroot.c.orig 2017-04-24 09:16:00.000000000 +0000
+++ util/getroot.c
@@ -456,7 +456,7 @@ grub_util_biosdisk_is_present (const cha
return ret;
}
-#ifdef HAVE_LIBZFS
+#if defined(HAVE_LIBZFS) && defined(HAVE_LIBNVPAIR)
static libzfs_handle_t *__libzfs_handle;
static void