From 0df634200a77048e5d738f3f7a7e65d114453a17 Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 1 Jul 2009 22:56:51 +0000 Subject: [PATCH] 2009-07-01 Pavel Roskin * util/hostdisk.c (device_is_wholedisk): Compile only on systems where it's needed. --- ChangeLog | 3 +++ util/hostdisk.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7bd06b149..f64edf44e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-07-01 Pavel Roskin + * util/hostdisk.c (device_is_wholedisk): Compile only on systems + where it's needed. + * Makefile.in: Install include/grub/machine symlink. * Makefile.in: When installing symlinks, use "cp -fR", which diff --git a/util/hostdisk.c b/util/hostdisk.c index 1844a7e55..46afc3882 100644 --- a/util/hostdisk.c +++ b/util/hostdisk.c @@ -833,6 +833,7 @@ convert_system_partition_to_system_disk (const char *os_dev) #endif } +#if defined(__linux__) || defined(__CYGWIN__) static int device_is_wholedisk (const char *os_dev) { @@ -842,6 +843,7 @@ device_is_wholedisk (const char *os_dev) return 1; return 0; } +#endif static int find_system_device (const char *os_dev)