svn commit: r212182 - head/sys/kern

Matthew D Fleming mdf at FreeBSD.org
Fri Sep 3 17:23:27 UTC 2010


Author: mdf
Date: Fri Sep  3 17:23:26 2010
New Revision: 212182
URL: http://svn.freebsd.org/changeset/base/212182

Log:
  Fix user-space libsbuf build.  Why isn't CTASSERT available to
  user-space?

Modified:
  head/sys/kern/subr_sbuf.c

Modified: head/sys/kern/subr_sbuf.c
==============================================================================
--- head/sys/kern/subr_sbuf.c	Fri Sep  3 16:12:39 2010	(r212181)
+++ head/sys/kern/subr_sbuf.c	Fri Sep  3 17:23:26 2010	(r212182)
@@ -116,8 +116,10 @@ _assert_sbuf_state(const char *fun, stru
 
 #endif /* _KERNEL && INVARIANTS */
 
+#ifdef _KERNEL
 CTASSERT(powerof2(SBUF_MAXEXTENDSIZE));
 CTASSERT(powerof2(SBUF_MAXEXTENDINCR));
+#endif
 
 static int
 sbuf_extendsize(int size)


More information about the svn-src-head mailing list