commit-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[2386] 2009-07-01 Pavel Roskin <address@hidden>


From: Pavel Roskin
Subject: [2386] 2009-07-01 Pavel Roskin <address@hidden>
Date: Wed, 01 Jul 2009 22:56:51 +0000

Revision: 2386
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2386
Author:   proski
Date:     2009-07-01 22:56:51 +0000 (Wed, 01 Jul 2009)
Log Message:
-----------
2009-07-01  Pavel Roskin  <address@hidden>

        * util/hostdisk.c (device_is_wholedisk): Compile only on systems
        where it's needed.

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/util/hostdisk.c

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog       2009-07-01 22:48:38 UTC (rev 2385)
+++ trunk/grub2/ChangeLog       2009-07-01 22:56:51 UTC (rev 2386)
@@ -1,5 +1,8 @@
 2009-07-01  Pavel Roskin  <address@hidden>
 
+       * 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

Modified: trunk/grub2/util/hostdisk.c
===================================================================
--- trunk/grub2/util/hostdisk.c 2009-07-01 22:48:38 UTC (rev 2385)
+++ trunk/grub2/util/hostdisk.c 2009-07-01 22:56:51 UTC (rev 2386)
@@ -833,6 +833,7 @@
 #endif
 }
 
+#if defined(__linux__) || defined(__CYGWIN__)
 static int
 device_is_wholedisk (const char *os_dev)
 {
@@ -842,6 +843,7 @@
     return 1;
   return 0;
 }
+#endif
 
 static int
 find_system_device (const char *os_dev)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]