* util/getroot.c (exec_pipe): Put proper #if's so that its users don't

	compile when not needed.
parent c1b00fff
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.
......@@ -220,9 +220,6 @@ xgetcwd (void)
#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)
{
......@@ -268,8 +265,6 @@ exec_pipe (char **argv, int *fd)
}
}
#endif
static char **
find_root_devices_from_poolname (char *poolname)
{
......@@ -1322,6 +1317,8 @@ grub_util_get_dev_abstraction (const char *os_dev)
return GRUB_DEV_ABSTRACTION_NONE;
}
#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
static void
pull_lvm_by_command (const char *os_dev)
{
......@@ -1392,6 +1389,8 @@ out:
free (buf);
}
#endif
#ifdef __linux__
static char *
get_mdadm_uuid (const char *os_dev)
......@@ -1615,7 +1614,9 @@ grub_util_pull_device (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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment