aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sockbuf.h
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2008-07-29 21:48:01 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2008-07-29 21:48:01 +0000
commit8cad15c8fe007114610488032a3a3d4d665082c1 (patch)
tree397434af0c87dbc7d3ec7ea8773aadd40bc01dff /sys/sys/sockbuf.h
parentf35a20921e7d927ebd4fb884383e872783049b33 (diff)
downloadsrc-8cad15c8fe007114610488032a3a3d4d665082c1.tar.gz
src-8cad15c8fe007114610488032a3a3d4d665082c1.zip
Unbreak the build by protecting kernel-only functions with #ifdef _KERNEL.
Notes
Notes: svn path=/head/; revision=180970
Diffstat (limited to 'sys/sys/sockbuf.h')
-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 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_ */