aboutsummaryrefslogtreecommitdiff
path: root/sysutils/grub/files/patch-lib_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/grub/files/patch-lib_device.c')
-rw-r--r--sysutils/grub/files/patch-lib_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/grub/files/patch-lib_device.c b/sysutils/grub/files/patch-lib_device.c
index ac44ee3ea91f..d0b3dd951c3e 100644
--- a/sysutils/grub/files/patch-lib_device.c
+++ b/sysutils/grub/files/patch-lib_device.c
@@ -1,5 +1,5 @@
--- lib/device.c.orig Sat Jan 17 18:57:57 2004
-+++ lib/device.c Sat Jan 31 06:32:24 2004
++++ lib/device.c Mon Mar 1 06:36:39 2004
@@ -78,6 +78,12 @@
# include <sys/ioctl.h> /* ioctl */
# include <sys/disklabel.h>
@@ -36,7 +36,7 @@
/* FreeBSD, NetBSD or OpenBSD */
{
struct disklabel hdg;
-+#if __FreeBSD_version < 500040
++#if !defined(__FreeBSD__) || __FreeBSD_version < 500040
if (ioctl (fd, DIOCGDINFO, &hdg))
goto fail;