* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:

Add blocksize retrieval.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-29 15:17:59 +01:00
parent dfc8aeb042
commit c66d641020
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
Add blocksize retrieval.
2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Restore CFLAGS after efiemu check.

View file

@ -283,6 +283,9 @@ grub_util_get_fd_sectors (int fd, const char *name, unsigned *log_secsize)
# if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
if (ioctl (fd, DIOCGSECTORSIZE, &sector_size))
goto fail;
# elif defined(__APPLE__)
if (ioctl (fd, DKIOCGETBLOCKSIZE, &sector_size))
goto fail;
# elif defined(__sun__)
sector_size = minfo.dki_lbsize;
# elif defined(__NetBSD__)