dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

23d2ea
From 43f8e295a66a74093a967fb974f2b2b818c8a6ce Mon Sep 17 00:00:00 2001
39700a
From: Colin Watson <cjwatson@ubuntu.com>
39700a
Date: Fri, 17 Jan 2014 02:30:52 +0000
27a4da
Subject: [PATCH 017/260] 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
27a4da
index b445f1215..6613b4ee5 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
27a4da
index bd5fddb91..eb202dcc8 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
-- 
27a4da
2.13.0
39700a