Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Add missing "#ifd...



details:   https://anonhg.NetBSD.org/src/rev/7e46460ebf1d
branches:  trunk
changeset: 455336:7e46460ebf1d
user:      hannken <hannken%NetBSD.org@localhost>
date:      Tue Oct 15 06:58:12 2019 +0000

description:
Add missing "#ifdef _KERNEL" to fix the build of userland zfs libraries.

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (13 lines):

diff -r c78fd4a39d92 -r 7e46460ebf1d external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c     Tue Oct 15 04:25:44 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c     Tue Oct 15 06:58:12 2019 +0000
@@ -67,7 +67,9 @@
        auio.uio_segflg = UIO_SYSSPACE;
        auio.uio_td = da->da_td;
 #else
+#ifdef _KERNEL
        auio.uio_vmspace = vmspace_kernel();
+#endif
 #endif /* __FreeBSD__ */
 #ifdef _KERNEL
 #ifdef __FreeBSD__



Home | Main Index | Thread Index | Old Index