+2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
+ compile when not needed.
+
2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
* tests/pseries_test.in: New test.
#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
-#if (defined (__linux__) || \
- !defined (HAVE_LIBZFS) || !defined (HAVE_LIBNVPAIR))
-
static pid_t
exec_pipe (char **argv, int *fd)
{
}
}
-#endif
-
static char **
find_root_devices_from_poolname (char *poolname)
{
return GRUB_DEV_ABSTRACTION_NONE;
}
+#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
+
static void
pull_lvm_by_command (const char *os_dev)
{
free (buf);
}
+#endif
+
#ifdef __linux__
static char *
get_mdadm_uuid (const char *os_dev)
break;
case GRUB_DEV_ABSTRACTION_LVM:
+#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
pull_lvm_by_command (os_dev);
+#endif
/* Fallthrough in case that lvm-tools are unavailable. */
case GRUB_DEV_ABSTRACTION_LUKS:
#ifdef HAVE_DEVICE_MAPPER