diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-07-29 23:00:00 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-07-29 23:00:00 +0000 |
commit | 1b467f037efde96f4c3907f4422f9534c207f983 (patch) | |
tree | 8085febfe703a235e0bb503f091b6f13712a0784 | |
parent | 5b3bca24711b7499da43f323d206674102534d91 (diff) | |
download | FreeBSD-src-1b467f037efde96f4c3907f4422f9534c207f983.zip FreeBSD-src-1b467f037efde96f4c3907f4422f9534c207f983.tar.gz |
fix build by forward declaring thread and hiding socket buffer definitions from user code
-rw-r--r-- | sys/sys/sockbuf.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h index b4aedc3..7d4d882 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 */ |