summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-06-24 23:16:02 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-06-24 23:16:02 +0000
commit3fe2f0183ca7081c263069f7fd38663b8f39d2fc (patch)
tree0ab10fa71580c6dbd22e353d076a995101897ef5 /sys
parenta34de5ad5282763084bd871008a8307c9728a6e7 (diff)
ufs_dirops only needed when compiling with _KERNEL
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ufs/dir.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/ufs/ufs/dir.h b/sys/ufs/ufs/dir.h
index 6d1178474ce..336d9e0cc0a 100644
--- a/sys/ufs/ufs/dir.h
+++ b/sys/ufs/ufs/dir.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dir.h,v 1.3 1996/06/24 03:35:03 downsj Exp $ */
+/* $OpenBSD: dir.h,v 1.4 1996/06/24 23:16:01 tholo Exp $ */
/* $NetBSD: dir.h,v 1.8 1996/03/09 19:42:41 scottr Exp $ */
/*
@@ -156,6 +156,7 @@ struct odirtemplate {
char dotdot_name[4]; /* ditto */
};
+#ifdef _KERNEL
/*
* For lack of a better place...
*
@@ -163,7 +164,10 @@ struct odirtemplate {
* ufs-like filesystems in vnop code. Most have to do with directories.
*/
+struct componentname;
+struct vnode;
struct inode;
+struct ucred;
struct ufs_dirops {
int (*dirremove) __P((struct vnode *, struct componentname *));
int (*direnter) __P((struct inode *, struct vnode *,
@@ -174,5 +178,6 @@ struct ufs_dirops {
int (*checkpath) __P((struct inode *, struct inode *,
struct ucred *));
};
+#endif /* _KERNEL */
#endif /* !_DIR_H_ */