Module Name: src
Committed By: hannken
Date: Tue Oct 15 06:58:13 UTC 2019
Modified Files:
src/external/cddl/osnet/dist/uts/common/fs/zfs: dmu_diff.c
Log Message:
Add missing "#ifdef _KERNEL" to fix the build of userland zfs libraries.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 \
src/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c
diff -u src/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c:1.3 src/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c:1.4
--- src/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c:1.3 Mon Oct 14 13:18:00 2019
+++ src/external/cddl/osnet/dist/uts/common/fs/zfs/dmu_diff.c Tue Oct 15 06:58:12 2019
@@ -67,7 +67,9 @@ write_bytes(struct diffarg *da)
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__