From 911179026c05519d389d3e849a935f81af1941d8 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 18 Sep 2008 16:08:32 +0000 Subject: [PATCH] Unbreak buildworld a slightly different way. Adjust null.h to not include internal structures when being included from userland. --- sbin/mount_null/mount_null.c | 3 +-- sys/vfs/nullfs/null.h | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sbin/mount_null/mount_null.c b/sbin/mount_null/mount_null.c index 6ce02b89c1..ec23bd9839 100644 --- a/sbin/mount_null/mount_null.c +++ b/sbin/mount_null/mount_null.c @@ -36,10 +36,9 @@ * @(#) Copyright (c) 1992, 1993, 1994 The Regents of the University of California. All rights reserved. * @(#)mount_null.c 8.6 (Berkeley) 4/26/95 * $FreeBSD: src/sbin/mount_null/mount_null.c,v 1.13 1999/10/09 11:54:11 phk Exp $ - * $DragonFly: src/sbin/mount_null/mount_null.c,v 1.10 2008/09/18 11:54:25 swildner Exp $ + * $DragonFly: src/sbin/mount_null/mount_null.c,v 1.11 2008/09/18 16:08:31 dillon Exp $ */ -#define _KERNEL_STRUCTURES #include #include #include diff --git a/sys/vfs/nullfs/null.h b/sys/vfs/nullfs/null.h index 78db32ebd0..c227244859 100644 --- a/sys/vfs/nullfs/null.h +++ b/sys/vfs/nullfs/null.h @@ -36,19 +36,23 @@ * @(#)null.h 8.3 (Berkeley) 8/20/94 * * $FreeBSD: src/sys/miscfs/nullfs/null.h,v 1.11.2.3 2001/06/26 04:20:09 bp Exp $ - * $DragonFly: src/sys/vfs/nullfs/null.h,v 1.9 2008/09/17 21:44:25 dillon Exp $ + * $DragonFly: src/sys/vfs/nullfs/null.h,v 1.10 2008/09/18 16:08:32 dillon Exp $ */ struct null_args { char *target; /* Target of loopback */ }; +#if defined(_KERNEL) || defined(_KERNEL_STRUCTURES) + struct null_mount { struct mount *nullm_vfs; struct vnode *nullm_rootvp; /* Reference to root null_node */ struct netexport export; }; +#endif + #ifdef _KERNEL #define MOUNTTONULLMOUNT(mp) ((struct null_mount *)((mp)->mnt_data)) -- 2.11.4.GIT