mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
compilation on NetBSD.
This commit is contained in:
1 parent
5757a93e01
commit
da5ed5cf6b
2 files changed
+8
-1
No files matched your search
@@ -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>
|
2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* acinclude.m4: Don't add -P on initial nm test.
|
* acinclude.m4: Don't add -P on initial nm test.
|
||||||
|
|||||||
@@ -104,8 +104,10 @@ grub_util_get_fd_size_os (grub_util_fd_t fd, const char *name, unsigned *log_sec
|
|||||||
struct disklabel label;
|
struct disklabel label;
|
||||||
unsigned sector_size, log_sector_size;
|
unsigned sector_size, log_sector_size;
|
||||||
|
|
||||||
|
#if defined(__NetBSD__)
|
||||||
grub_hostdisk_configure_device_driver (fd);
|
grub_hostdisk_configure_device_driver (fd);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (ioctl (fd, DIOCGDINFO, &label) == -1)
|
if (ioctl (fd, DIOCGDINFO, &label) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user