]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2011-10-15 Robert Millan <rmh@gnu.org>
authorRobert Millan <rmh@gnu.org>
Sat, 15 Oct 2011 11:33:41 +0000 (13:33 +0200)
committerRobert Millan <rmh@gnu.org>
Sat, 15 Oct 2011 11:33:41 +0000 (13:33 +0200)
        Fix build problem on FreeBSD and GNU/kFreeBSD.

        * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.

ChangeLog
util/getroot.c

index 9a8b38fd0f69782e7e48539be9ce690a542e9861..723531f5c6f68e49602e6477b4e9475b779d7035 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-10-15  Robert Millan  <rmh@gnu.org>
+
+       Fix build problem on FreeBSD and GNU/kFreeBSD.
+
+       * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
+
 2011-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
 
        Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
index 7c5602e71ccb1333cef0438f53fe6889a637cabd..510049acbac0dd290a1684c7ec6012e0bea0a55d 100644 (file)
 # include <sys/wait.h>
 #endif
 
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+# include <sys/mount.h>
+#endif
+
 #if defined(HAVE_LIBZFS) && defined(HAVE_LIBNVPAIR)
 # include <grub/util/libzfs.h>
 # include <grub/util/libnvpair.h>