Fix various build problems on GNU/Hurd.
* grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside !defined (__GNU__). (xgetcwd): Likewise. * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info) [__GNU__]: Add prototype. * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format long int using %ld rather than %d.
This commit is contained in:
parent
2fa5a58ca3
commit
3bc1b2daab
4 changed files with 21 additions and 3 deletions
|
@ -363,9 +363,9 @@ grub_util_biosdisk_get_grub_dev (const char *os_dev)
|
|||
char *t;
|
||||
t = dri;
|
||||
if (*q >= 'a' && *q <= 'g')
|
||||
dri = xasprintf ("%s,%d,%d", t, n, *q - 'a' + 1);
|
||||
dri = xasprintf ("%s,%ld,%d", t, n, *q - 'a' + 1);
|
||||
else
|
||||
dri = xasprintf ("%s,%d", t, n);
|
||||
dri = xasprintf ("%s,%ld", t, n);
|
||||
free (t);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue