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/7b5676f7e9f7
branches:  trunk
changeset: 966119:7b5676f7e9f7
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 381389d39e54 -r 7b5676f7e9f7 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