From 8cad15c8fe007114610488032a3a3d4d665082c1 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Tue, 29 Jul 2008 21:48:01 +0000 Subject: [PATCH] Unbreak the build by protecting kernel-only functions with #ifdef _KERNEL. --- sys/sys/sockbuf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h index 1d037532b4cf..b4aedc37bc55 100644 --- a/sys/sys/sockbuf.h +++ b/sys/sys/sockbuf.h @@ -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_ */