Blame SOURCES/0017-freebsd-hostdisk.c-is-only-ever-compiled-on-FreeBSD.patch

d41074
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
a85e8e
From: Colin Watson <cjwatson@ubuntu.com>
a85e8e
Date: Fri, 17 Jan 2014 02:30:52 +0000
d41074
Subject: [PATCH] freebsd/hostdisk.c is only ever compiled on FreeBSD
a85e8e
a85e8e
* grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
a85e8e
redundant preprocessor conditional.
a85e8e
---
a85e8e
 grub-core/osdep/freebsd/hostdisk.c | 2 --
d41074
 ChangeLog                          | 5 +++++
a85e8e
 2 files changed, 5 insertions(+), 2 deletions(-)
a85e8e
a85e8e
diff --git a/grub-core/osdep/freebsd/hostdisk.c b/grub-core/osdep/freebsd/hostdisk.c
d41074
index bd5fddb9150..eb202dcc831 100644
a85e8e
--- a/grub-core/osdep/freebsd/hostdisk.c
a85e8e
+++ b/grub-core/osdep/freebsd/hostdisk.c
a85e8e
@@ -108,7 +108,6 @@ grub_util_fd_open (const char *os_dev, int flags)
a85e8e
 
a85e8e
   ret = open (os_dev, flags, S_IROTH | S_IRGRP | S_IRUSR | S_IWUSR);
a85e8e
 
a85e8e
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
a85e8e
   if (! (sysctl_oldflags & 0x10)
a85e8e
       && sysctlbyname ("kern.geom.debugflags", NULL , 0, &sysctl_oldflags, sysctl_size))
a85e8e
     {
a85e8e
@@ -116,7 +115,6 @@ grub_util_fd_open (const char *os_dev, int flags)
a85e8e
       close (ret);
a85e8e
       return GRUB_UTIL_FD_INVALID;
a85e8e
     }
a85e8e
-#endif
a85e8e
 
a85e8e
   return ret;
a85e8e
 }
d41074
diff --git a/ChangeLog b/ChangeLog
d41074
index b445f121586..6613b4ee52b 100644
d41074
--- a/ChangeLog
d41074
+++ b/ChangeLog
d41074
@@ -1,3 +1,8 @@
d41074
+2014-01-17  Colin Watson  <cjwatson@debian.org>
d41074
+
d41074
+	* grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
d41074
+	redundant preprocessor conditional.
d41074
+
d41074
 2014-01-08  Colin Watson  <cjwatson@ubuntu.com>
d41074
 
d41074
 	* Makefile.util.def (grub-macbless): Change mansection to 8.