svn commit: r212182 - head/sys/kern
pluknet
pluknet at gmail.com
Fri Sep 3 17:35:30 UTC 2010
On 3 September 2010 21:23, Matthew D Fleming <mdf at freebsd.org> wrote:
> 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)
Hi,
as I can see, the next (and maybe preferred) model is used in system headers:
#ifdef CTASSERT
CTASSERT(...);
#endif
--
wbr,
pluknet
More information about the svn-src-head
mailing list