* include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.

Migrate all explicit defines to this new one.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-09-24 19:17:24 +02:00
parent 43b1c99d53
commit bab7b1ebeb
4 changed files with 13 additions and 6 deletions

View file

@ -161,7 +161,7 @@ grub_util_biosdisk_open (const char *name, grub_disk_t disk)
&disk->log_sector_size);
disk->total_sectors >>= disk->log_sector_size;
#if !defined(__MINGW32__) && !defined(__CYGWIN__) && !defined (__AROS__)
#if GRUB_UTIL_FD_STAT_IS_FUNCTIONAL
{
struct stat st;
# if GRUB_DISK_DEVS_ARE_CHAR