freebsd/hostdisk.c is only ever compiled on FreeBSD
* grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove redundant preprocessor conditional.
This commit is contained in:
parent
0776112c53
commit
09a836e59c
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-01-17 Colin Watson <cjwatson@debian.org>
|
||||
|
||||
* grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
|
||||
redundant preprocessor conditional.
|
||||
|
||||
2014-01-08 Colin Watson <cjwatson@ubuntu.com>
|
||||
|
||||
* Makefile.util.def (grub-macbless): Change mansection to 8.
|
||||
|
|
|
@ -108,7 +108,6 @@ grub_util_fd_open (const char *os_dev, int flags)
|
|||
|
||||
ret = open (os_dev, flags, S_IROTH | S_IRGRP | S_IRUSR | S_IWUSR);
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
if (! (sysctl_oldflags & 0x10)
|
||||
&& sysctlbyname ("kern.geom.debugflags", NULL , 0, &sysctl_oldflags, sysctl_size))
|
||||
{
|
||||
|
@ -116,7 +115,6 @@ grub_util_fd_open (const char *os_dev, int flags)
|
|||
close (ret);
|
||||
return GRUB_UTIL_FD_INVALID;
|
||||
}
|
||||
#endif
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue