summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2010-07-17 19:24:58 +0000
committerguenther <guenther@openbsd.org>2010-07-17 19:24:58 +0000
commit3e3927fb44631accfdbac72e2e3d7fc847df7ce4 (patch)
tree93975b531f01e35216b2fc593bf88b9df46639a2 /sys/miscfs
parentCorrect the #includes to avoid warnings in <rpc/svc.h> (diff)
downloadwireguard-openbsd-3e3927fb44631accfdbac72e2e3d7fc847df7ce4.tar.xz
wireguard-openbsd-3e3927fb44631accfdbac72e2e3d7fc847df7ce4.zip
Wrap kernel function declarations in #ifdef _KERNEL to eliminate warnings
when the header is used by userspace. ok miod@
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/specfs/specdev.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/miscfs/specfs/specdev.h b/sys/miscfs/specfs/specdev.h
index 55d9322b493..7e1a83a7648 100644
--- a/sys/miscfs/specfs/specdev.h
+++ b/sys/miscfs/specfs/specdev.h
@@ -1,4 +1,4 @@
-/* $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 $ */
/*
@@ -78,6 +78,7 @@ struct cloneinfo {
extern struct vnode *speclisth[SPECHSZ];
+#ifdef _KERNEL
/*
* Prototypes for special file operations on vnodes.
*/
@@ -112,3 +113,4 @@ int spec_vnoperate(void *);
/* spec_subr.c */
int spec_open_clone(struct vop_open_args *);
int spec_close_clone(struct vop_close_args *);
+#endif /* _KERNEL */