when the header is used by userspace.
ok miod@
-/* $OpenBSD: specdev.h,v 1.25 2008/05/03 14:41:29 thib Exp $ */
+/* $OpenBSD: specdev.h,v 1.26 2010/07/17 19:24:58 guenther Exp $ */
/* $NetBSD: specdev.h,v 1.12 1996/02/13 13:13:01 mycroft Exp $ */
/*
extern struct vnode *speclisth[SPECHSZ];
+#ifdef _KERNEL
/*
* Prototypes for special file operations on vnodes.
*/
/* spec_subr.c */
int spec_open_clone(struct vop_open_args *);
int spec_close_clone(struct vop_close_args *);
+#endif /* _KERNEL */
-/* $OpenBSD: specdev.h,v 1.25 2008/05/03 14:41:29 thib Exp $ */
+/* $OpenBSD: specdev.h,v 1.26 2010/07/17 19:24:58 guenther Exp $ */
/* $NetBSD: specdev.h,v 1.12 1996/02/13 13:13:01 mycroft Exp $ */
/*
extern struct vnode *speclisth[SPECHSZ];
+#ifdef _KERNEL
/*
* Prototypes for special file operations on vnodes.
*/
/* spec_subr.c */
int spec_open_clone(struct vop_open_args *);
int spec_close_clone(struct vop_close_args *);
+#endif /* _KERNEL */