From fdc79256c115dbac150e47ef4e49860c9869df74 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 5 Mar 1999 11:25:31 +0000 Subject: [PATCH] Moved kernel declarations inside the KERNEL ifdef, and removed include of in the !KERNEL case. The prerequisites for were broken in Lite2 by converting some of the kernel declarations to use queue macros without including . was included in applications in /usr/src instead. We polluted this file instead of merging the changes in the applications. Include in the KERNEL case, and forward-declare all structs that are used in prototypes, so that this file is almost self-sufficient even in the kernel. Obtained from: mostly from NetBSD --- sys/ufs/ufs/quota.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sys/ufs/ufs/quota.h b/sys/ufs/ufs/quota.h index 1944e403b77..e5ce29b8bf1 100644 --- a/sys/ufs/ufs/quota.h +++ b/sys/ufs/ufs/quota.h @@ -34,16 +34,12 @@ * SUCH DAMAGE. * * @(#)quota.h 8.3 (Berkeley) 8/19/94 - * $Id: quota.h,v 1.11 1997/07/13 15:43:54 bde Exp $ + * $Id: quota.h,v 1.12 1999/03/05 09:28:33 bde Exp $ */ #ifndef _UFS_UFS_QUOTA_H_ #define _UFS_UFS_QUOTA_H_ -#ifndef KERNEL -#include -#endif - /* * Definitions for disk quotas imposed on the average user * (big brother finally hits UNIX). @@ -112,6 +108,10 @@ struct dqblk { time_t dqb_itime; /* time limit for excessive files */ }; +#ifdef KERNEL + +#include + /* * The following structure records disk usage for a user or group on a * filesystem. There is one allocated for each quota that exists on any @@ -172,10 +172,10 @@ struct dquot { #define DQREF(dq) (dq)->dq_cnt++ #endif -#ifdef KERNEL - struct inode; struct mount; +struct proc; +struct ucred; struct vnode; int chkdq __P((struct inode *, long, struct ucred *, int));