From c53e436efcfd93c892d248235d17dc2975310137 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Tue, 3 Feb 1998 21:39:30 +0000 Subject: [PATCH] Forward declare some structs so that this file is more self-sufficient. Don't declare kernel objects or functions unless KERNEL is defined. --- sys/fs/cd9660/cd9660_node.h | 12 +++++++++++- sys/isofs/cd9660/cd9660_node.h | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/sys/fs/cd9660/cd9660_node.h b/sys/fs/cd9660/cd9660_node.h index 4a1a79c0904..33b208f7cbb 100644 --- a/sys/fs/cd9660/cd9660_node.h +++ b/sys/fs/cd9660/cd9660_node.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)cd9660_node.h 8.6 (Berkeley) 5/14/95 - * $Id: cd9660_node.h,v 1.15 1997/10/17 12:36:10 phk Exp $ + * $Id: cd9660_node.h,v 1.16 1997/11/18 14:40:34 phk Exp $ */ /* @@ -92,11 +92,19 @@ struct iso_node { #define VTOI(vp) ((struct iso_node *)(vp)->v_data) #define ITOV(ip) ((ip)->i_vnode) +#ifdef KERNEL + #ifdef MALLOC_DECLARE MALLOC_DECLARE(M_ISOFSMNT); MALLOC_DECLARE(M_ISOFSNODE); #endif +struct buf; +struct vop_bmap_args; +struct vop_cachedlookup_args; +struct vop_inactive_args; +struct vop_reclaim_args; + /* * Prototypes for ISOFS vnode operations */ @@ -114,3 +122,5 @@ struct vnode *cd9660_ihashget __P((dev_t, ino_t)); void cd9660_ihashins __P((struct iso_node *)); int cd9660_tstamp_conv7 __P((u_char *, struct timespec *, enum ISO_FTYPE)); int cd9660_tstamp_conv17 __P((u_char *, struct timespec *)); + +#endif /* KERNEL */ diff --git a/sys/isofs/cd9660/cd9660_node.h b/sys/isofs/cd9660/cd9660_node.h index 4a1a79c0904..33b208f7cbb 100644 --- a/sys/isofs/cd9660/cd9660_node.h +++ b/sys/isofs/cd9660/cd9660_node.h @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)cd9660_node.h 8.6 (Berkeley) 5/14/95 - * $Id: cd9660_node.h,v 1.15 1997/10/17 12:36:10 phk Exp $ + * $Id: cd9660_node.h,v 1.16 1997/11/18 14:40:34 phk Exp $ */ /* @@ -92,11 +92,19 @@ struct iso_node { #define VTOI(vp) ((struct iso_node *)(vp)->v_data) #define ITOV(ip) ((ip)->i_vnode) +#ifdef KERNEL + #ifdef MALLOC_DECLARE MALLOC_DECLARE(M_ISOFSMNT); MALLOC_DECLARE(M_ISOFSNODE); #endif +struct buf; +struct vop_bmap_args; +struct vop_cachedlookup_args; +struct vop_inactive_args; +struct vop_reclaim_args; + /* * Prototypes for ISOFS vnode operations */ @@ -114,3 +122,5 @@ struct vnode *cd9660_ihashget __P((dev_t, ino_t)); void cd9660_ihashins __P((struct iso_node *)); int cd9660_tstamp_conv7 __P((u_char *, struct timespec *, enum ISO_FTYPE)); int cd9660_tstamp_conv17 __P((u_char *, struct timespec *)); + +#endif /* KERNEL */ -- 2.45.2