diff --git a/ChangeLog b/ChangeLog index 986267b9c..8d27fdb7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2012-04-22 Samuel Thibault + + 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 Fix kfreebsd compile and behaviour. diff --git a/grub-core/kern/emu/hostdisk.c b/grub-core/kern/emu/hostdisk.c index 3b41ce8a9..de5df6224 100644 --- a/grub-core/kern/emu/hostdisk.c +++ b/grub-core/kern/emu/hostdisk.c @@ -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;