Unbreak the build by protecting kernel-only functions with #ifdef _KERNEL.

This commit is contained in:
Olivier Houchard 2008-07-29 21:48:01 +00:00
parent f35a20921e
commit 8cad15c8fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=180970

View File

@ -96,6 +96,8 @@ struct sockbuf {
short sb_flags; /* (c/d) flags, see below */
};
#ifdef _KERNEL
void sbappend(struct sockbuf *sb, struct mbuf *m);
void sbappend_locked(struct sockbuf *sb, struct mbuf *m);
void sbappendstream(struct sockbuf *sb, struct mbuf *m);
@ -195,4 +197,6 @@ void sblastmbufchk(struct sockbuf *, const char *, int);
#define SBLASTMBUFCHK(sb) /* nothing */
#endif /* SOCKBUF_DEBUG */
#endif /* _KERNEL */
#endif /* _SYS_SOCKBUF_H_ */