aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sockbuf.h
diff options
context:
space:
mode:
authorKip Macy <kmacy@FreeBSD.org>2008-07-29 23:00:00 +0000
committerKip Macy <kmacy@FreeBSD.org>2008-07-29 23:00:00 +0000
commit57ca0572b111f4315403de400960e7f6a1a21550 (patch)
tree8085febfe703a235e0bb503f091b6f13712a0784 /sys/sys/sockbuf.h
parent8cad15c8fe007114610488032a3a3d4d665082c1 (diff)
downloadsrc-57ca0572b111f4315403de400960e7f6a1a21550.tar.gz
src-57ca0572b111f4315403de400960e7f6a1a21550.zip
fix build by forward declaring thread and hiding socket buffer definitions from user code
Notes
Notes: svn path=/head/; revision=180971
Diffstat (limited to 'sys/sys/sockbuf.h')
-rw-r--r--sys/sys/sockbuf.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h
index b4aedc37bc55..7d4d88216f1e 100644
--- a/sys/sys/sockbuf.h
+++ b/sys/sys/sockbuf.h
@@ -53,9 +53,10 @@
#define SBS_CANTRCVMORE 0x0020 /* can't receive more data from peer */
#define SBS_RCVATMARK 0x0040 /* at mark on input */
-struct socket;
-struct sockaddr;
struct mbuf;
+struct sockaddr;
+struct socket;
+struct thread;
struct xsockbuf {
u_int sb_cc;
@@ -95,7 +96,8 @@ struct sockbuf {
int sb_timeo; /* (c/d) timeout for read/write */
short sb_flags; /* (c/d) flags, see below */
};
-
+
+#ifdef _KERNEL
#ifdef _KERNEL
void sbappend(struct sockbuf *sb, struct mbuf *m);
@@ -196,6 +198,7 @@ void sblastmbufchk(struct sockbuf *, const char *, int);
#define SBLASTRECORDCHK(sb) /* nothing */
#define SBLASTMBUFCHK(sb) /* nothing */
#endif /* SOCKBUF_DEBUG */
+#endif
#endif /* _KERNEL */