From efe103300543fe546455f59f2bf51db74e9ea2c5 Mon Sep 17 00:00:00 2001 From: jdolecek Date: Fri, 4 Aug 2000 09:20:21 +0000 Subject: [PATCH] guard prototypes for lf_* functions by ifdef _KERNEL Noted by Andrew Brown . --- sys/sys/lockf.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/sys/lockf.h b/sys/sys/lockf.h index 2b4f9c214652..21d1ff4e4849 100644 --- a/sys/sys/lockf.h +++ b/sys/sys/lockf.h @@ -1,4 +1,4 @@ -/* $NetBSD: lockf.h,v 1.9 2000/07/22 15:26:11 jdolecek Exp $ */ +/* $NetBSD: lockf.h,v 1.10 2000/08/04 09:20:21 jdolecek Exp $ */ /* * Copyright (c) 1991, 1993 @@ -71,6 +71,8 @@ struct lockf { /* Maximum length of sleep chains to traverse to try and detect deadlock. */ #define MAXDEPTH 50 +#ifdef _KERNEL + __BEGIN_DECLS void lf_addblock __P((struct lockf *, struct lockf *)); int lf_advlock __P((struct vop_advlock_args *, struct lockf **, off_t)); @@ -94,4 +96,6 @@ void lf_printlist __P((char *, struct lockf *)); __END_DECLS #endif /* LOCKF_DEBUG */ +#endif /* _KERNEL */ + #endif /* !_SYS_LOCKF_H_ */