[libvirt] [PATCH v2] Include param.h in case of HAVE_BSD_CPU_AFFINITY
Guido Günther
agx at sigxcpu.org
Mon Aug 11 20:29:26 UTC 2014
On Mon, Aug 11, 2014 at 10:55:47AM -0600, Eric Blake wrote:
> On 08/11/2014 04:23 AM, Guido Günther wrote:
> > This fixes compilation on kFreeBSD which otherwise fails like
> >
> > CC util/libvirt_util_la-virprocess.lo
> > In file included from /usr/include/sys/cpuset.h:35:0,
> > from util/virprocess.c:43:
> > /usr/include/sys/_cpuset.h:49:43: error: 'NBBY' undeclared here (not in
> > a function)
> > long __bits[howmany(CPU_SETSIZE, _NCPUBITS)];
> > ^
>
> >
> > Also change the #ifdef HAVE_BSH_CPU_AFFINITY to #if for consistency.
> > ---
> >
> > The previous version inluded sys/param.h twice causing make
> > syntax-check to fail.
> > -- Guido
> >
> > src/util/virprocess.c | 7 +++++--
> > 1 file changed, 5 insertions(+), 2 deletions(-)
>
> ACK
Pushed. Thanks,
-- Guido
More information about the libvir-list
mailing list