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

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