summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2008-07-29 21:48:01 +0000
committercognet <cognet@FreeBSD.org>2008-07-29 21:48:01 +0000
commit5b3bca24711b7499da43f323d206674102534d91 (patch)
tree397434af0c87dbc7d3ec7ea8773aadd40bc01dff
parentaa17b308bb5c74a477dfedece515cf0e22c95400 (diff)
downloadFreeBSD-src-5b3bca24711b7499da43f323d206674102534d91.zip
FreeBSD-src-5b3bca24711b7499da43f323d206674102534d91.tar.gz
Unbreak the build by protecting kernel-only functions with #ifdef _KERNEL.
-rw-r--r--sys/sys/sockbuf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h
index 1d03753..b4aedc3 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_ */
OpenPOWER on IntegriCloud