]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
authorVladimir Serbinenko <phcoder@gmail.com>
Thu, 14 Nov 2013 21:38:36 +0000 (22:38 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Thu, 14 Nov 2013 21:38:36 +0000 (22:38 +0100)
compilation on NetBSD.

ChangeLog
grub-core/osdep/bsd/hostdisk.c

index a94fd8820f6a7878e4c7bc92284ca592c52edd35..cfa917553168407b7272ec90707a45d0d92a917a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
+       compilation on NetBSD.
+
 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * acinclude.m4: Don't add -P on initial nm test.
index 0e32b98227fcdb626efb674b8b3b018b55e8bc87..c82d60e11bfdd81c2e78fb8303d600811877d5da 100644 (file)
@@ -104,8 +104,10 @@ grub_util_get_fd_size_os (grub_util_fd_t fd, const char *name, unsigned *log_sec
   struct disklabel label;
   unsigned sector_size, log_sector_size;
 
+#if defined(__NetBSD__)
   grub_hostdisk_configure_device_driver (fd);
-  
+#endif
+
   if (ioctl (fd, DIOCGDINFO, &label) == -1)
     return -1;