From 0f4e134c5fcb01df6f34344b415b2fbcbcfe454b Mon Sep 17 00:00:00 2001 From: dfr Date: Thu, 18 Feb 1999 09:19:41 +0000 Subject: Move the declaration of the vfs.nfs sysctl node outside an ifdef so that it builds if NFS_NOSERVER is defined. Spotted by: Bruce Evans --- sys/nfs/nfs_syscalls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/nfs') diff --git a/sys/nfs/nfs_syscalls.c b/sys/nfs/nfs_syscalls.c index c8da2db..c7c2a48 100644 --- a/sys/nfs/nfs_syscalls.c +++ b/sys/nfs/nfs_syscalls.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_syscalls.c 8.5 (Berkeley) 3/30/95 - * $Id: nfs_syscalls.c,v 1.45 1999/01/27 22:42:27 dillon Exp $ + * $Id: nfs_syscalls.c,v 1.46 1999/02/16 10:49:53 dfr Exp $ */ #include @@ -97,6 +97,8 @@ static int nfssvc_iod __P((struct proc *)); static int nfs_asyncdaemon[NFS_MAXASYNCDAEMON]; +SYSCTL_DECL(_vfs_nfs); + #ifndef NFS_NOSERVER int nfsd_waiting = 0; static struct nfsdrt nfsdrt; @@ -109,8 +111,6 @@ static int nfssvc_addsock __P((struct file *, struct sockaddr *, struct proc *)); static int nfssvc_nfsd __P((struct nfsd_srvargs *,caddr_t,struct proc *)); -SYSCTL_DECL(_vfs_nfs); - static int nfs_privport = 0; SYSCTL_INT(_vfs_nfs, NFS_NFSPRIVPORT, nfs_privport, CTLFLAG_RW, &nfs_privport, 0, ""); SYSCTL_INT(_vfs_nfs, OID_AUTO, gatherdelay, CTLFLAG_RW, &nfsrvw_procrastinate, 0, ""); -- cgit v1.1