]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix FreeBSD compilation problem.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 26 Mar 2011 11:49:34 +0000 (12:49 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 26 Mar 2011 11:49:34 +0000 (12:49 +0100)
* grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
(FLOPPY_MAJOR) [FreeBSD]: Likewise.

ChangeLog
grub-core/kern/emu/hostdisk.c

index b556c77e87c71a0e54f4ca427bdd78d75b89eb3a..bf69511a585286d9341a1b7fcad5a186e8c5db5d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Fix FreeBSD compilation problem.
+
+       * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
+       (FLOPPY_MAJOR) [FreeBSD]: Likewise.
+
 2011-03-24  Colin Watson  <cjwatson@ubuntu.com>
 
        * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
index 12dbe7469ba8c83de913b1fd5cf61b349b350399..b4f51da0f8cc28db117dee01194f86b176f8ca24 100644 (file)
@@ -92,6 +92,8 @@ struct hd_geometry
 # include <sys/disk.h> /* DIOCGMEDIASIZE */
 # include <sys/param.h>
 # include <sys/sysctl.h>
+# define MAJOR(dev) major(dev)
+# define FLOPPY_MAJOR  2
 #endif
 
 #if defined(__APPLE__)