svn commit: r212182 - head/sys/kern

mdf at FreeBSD.org mdf at FreeBSD.org
Fri Sep 3 17:24:33 UTC 2010


On Fri, Sep 3, 2010 at 10:23 AM, 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?

Sorry for the churn.  I am having a un-careful morning, it appears.

Thanks,
matthew

>
> 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