mirror of
https://git.proxmox.com/git/grub2
synced 2026-01-24 17:31:16 +00:00
Fix hurd build.
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do not define nr variable.
This commit is contained in:
parent
9a06490c07
commit
524b5d3a7c
@ -1,3 +1,10 @@
|
||||
2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
Fix hurd build.
|
||||
|
||||
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
|
||||
not define nr variable.
|
||||
|
||||
2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Fix kfreebsd compile and behaviour.
|
||||
|
||||
@ -242,13 +242,15 @@ grub_util_biosdisk_iterate (int (*hook) (const char *name),
|
||||
grub_uint64_t
|
||||
grub_util_get_fd_size (int fd, const char *name, unsigned *log_secsize)
|
||||
{
|
||||
#if !defined (__GNU__)
|
||||
# if defined(__NetBSD__)
|
||||
struct disklabel label;
|
||||
# elif defined (__sun__)
|
||||
struct dk_minfo minfo;
|
||||
#else
|
||||
# else
|
||||
unsigned long long nr;
|
||||
# endif
|
||||
#endif
|
||||
unsigned sector_size, log_sector_size;
|
||||
struct stat st;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user