summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_sbuf.c
diff options
context:
space:
mode:
authormdf <mdf@FreeBSD.org>2010-09-03 17:23:26 +0000
committermdf <mdf@FreeBSD.org>2010-09-03 17:23:26 +0000
commit9b6269741b46db7252c4cdb5c0cd000fe683cdd3 (patch)
treec2407d7ee0f1128e30edc44331702a0c39a123f9 /sys/kern/subr_sbuf.c
parentb46510221bbb955c545af845cf6c9a7c56cd1ee9 (diff)
downloadFreeBSD-src-9b6269741b46db7252c4cdb5c0cd000fe683cdd3.zip
FreeBSD-src-9b6269741b46db7252c4cdb5c0cd000fe683cdd3.tar.gz
Fix user-space libsbuf build. Why isn't CTASSERT available to
user-space?
Diffstat (limited to 'sys/kern/subr_sbuf.c')
-rw-r--r--sys/kern/subr_sbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_sbuf.c b/sys/kern/subr_sbuf.c
index c50bfd7..57c6f75 100644
--- a/sys/kern/subr_sbuf.c
+++ b/sys/kern/subr_sbuf.c
@@ -116,8 +116,10 @@ _assert_sbuf_state(const char *fun, struct sbuf *s, int state)
#endif /* _KERNEL && INVARIANTS */
+#ifdef _KERNEL
CTASSERT(powerof2(SBUF_MAXEXTENDSIZE));
CTASSERT(powerof2(SBUF_MAXEXTENDINCR));
+#endif
static int
sbuf_extendsize(int size)
OpenPOWER on IntegriCloud