Date: Fri, 6 Dec 2019 19:33:39 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r355460 - head/lib/libbe Message-ID: <201912061933.xB6JXdxo047844@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Fri Dec 6 19:33:39 2019 New Revision: 355460 URL: https://svnweb.freebsd.org/changeset/base/355460 Log: libbe: fix build against sysutils/openzfs, part 1 This is the half of the changes required that work as-is with both in-tree ZFS and the new hotness, sysutils/openzfs. Highlights are less dependency on header pollution (from somewhere) and using 'mnttab' instead of 'extmnttab'. In the in-tree ZFS, the latter is a #define for the former, but in the port extmnttab is actually a distinct struct that's a super-set of mnttab. We really want mnttab here anyways, so just use it. Modified: head/lib/libbe/be.c head/lib/libbe/be_access.c head/lib/libbe/be_info.c Modified: head/lib/libbe/be.c ============================================================================== --- head/lib/libbe/be.c Fri Dec 6 19:20:45 2019 (r355459) +++ head/lib/libbe/be.c Fri Dec 6 19:33:39 2019 (r355460) @@ -34,6 +34,9 @@ __FBSDID("$FreeBSD$"); #include <sys/stat.h> #include <sys/ucred.h> +#include <sys/zfs_context.h> +#include <sys/mntent.h> + #include <ctype.h> #include <libgen.h> #include <libzfs_core.h> @@ -67,7 +70,7 @@ static int be_locate_rootfs(libbe_handle_t *lbh) { struct statfs sfs; - struct extmnttab entry; + struct mnttab entry; zfs_handle_t *zfs; /* Modified: head/lib/libbe/be_access.c ============================================================================== --- head/lib/libbe/be_access.c Fri Dec 6 19:20:45 2019 (r355459) +++ head/lib/libbe/be_access.c Fri Dec 6 19:33:39 2019 (r355460) @@ -31,6 +31,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/mntent.h> + #include "be.h" #include "be_impl.h" Modified: head/lib/libbe/be_info.c ============================================================================== --- head/lib/libbe/be_info.c Fri Dec 6 19:20:45 2019 (r355459) +++ head/lib/libbe/be_info.c Fri Dec 6 19:33:39 2019 (r355460) @@ -30,6 +30,8 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <sys/zfs_context.h> + #include "be.h" #include "be_impl.h"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912061933.xB6JXdxo047844>