From 57ca0572b111f4315403de400960e7f6a1a21550 Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Tue, 29 Jul 2008 23:00:00 +0000 Subject: fix build by forward declaring thread and hiding socket buffer definitions from user code --- sys/sys/sockbuf.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys/sys') 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 */ -- cgit v1.2.3