[libvirt] [PATCH v2] Include param.h in case of HAVE_BSD_CPU_AFFINITY
Eric Blake
eblake at redhat.com
Mon Aug 11 16:55:47 UTC 2014
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
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140811/37265e8e/attachment-0001.sig>
More information about the libvir-list
mailing list