* kern/emu/getroot.c (find_mount_point_from_dir): Compile only if

[HAVE_LIBZFS && HAVE_LIBNVPAIR]
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-01 16:11:27 +02:00
parent ea9be8eadb
commit 8687cf071e
2 changed files with 10 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
* kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
[HAVE_LIBZFS && HAVE_LIBNVPAIR]
2010-08-01 Colin Watson <cjwatson@ubuntu.com>
* util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.

View file

@ -98,6 +98,8 @@ xgetcwd (void)
return path;
}
#if defined(HAVE_LIBZFS) && defined(HAVE_LIBNVPAIR)
static char *
find_mount_point_from_dir (const char *dir)
{
@ -154,6 +156,8 @@ find_mount_point_from_dir (const char *dir)
}
}
#endif
#ifdef __linux__
/* Statting something on a btrfs filesystem always returns a virtual device