Fix hurd build.

* util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
find_root_devices_from_poolname, find_root_devices_from_libzfs,
grub_find_device): Do not define.
This commit is contained in:
root 2012-04-22 19:02:55 +00:00
parent 524b5d3a7c
commit fe4824e998
2 changed files with 8 additions and 3 deletions

View File

@ -4,6 +4,9 @@
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
not define nr variable.
* util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
find_root_devices_from_poolname, find_root_devices_from_libzfs,
grub_find_device): Do not define.
2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>

View File

@ -175,7 +175,7 @@ static int
grub_util_is_imsm (const char *os_dev);
#endif
#if ! defined(__CYGWIN__)
#if ! defined(__CYGWIN__) && !defined(__GNU__)
static void
strip_extra_slashes (char *dir)
@ -218,7 +218,7 @@ xgetcwd (void)
#endif
#if !defined (__MINGW32__) && !defined (__CYGWIN__)
#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
static pid_t
exec_pipe (char **argv, int *fd)
@ -665,7 +665,7 @@ grub_find_root_devices_from_mountinfo (const char *dir, char **relroot)
#endif /* __linux__ */
#if !defined (__MINGW32__) && !defined (__CYGWIN__)
#if !defined (__MINGW32__) && !defined (__CYGWIN__) && !defined (__GNU__)
static char **
find_root_devices_from_libzfs (const char *dir)
@ -698,6 +698,8 @@ grub_find_device (const char *dir __attribute__ ((unused)),
return 0;
}
#elif defined (__GNU__)
#elif ! defined(__CYGWIN__)
char *