]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: port qemu to cygwin
authorEric Blake <eblake@redhat.com>
Thu, 30 May 2013 03:00:51 +0000 (21:00 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 30 May 2013 12:39:27 +0000 (06:39 -0600)
commit19a7f9fffb7c9962da5bbe4e6097c088f1efec23
tree7221ef7e7ec7120c30a72f15ba1b92b9dcc2060d
parentd671121ddc3cf9cc901457477dcb2481d0253386
build: port qemu to cygwin

A cygwin build of the qemu driver fails with:

qemu/qemu_process.c: In function 'qemuPrepareCpumap':
qemu/qemu_process.c:1803:31: error: 'CPU_SETSIZE' undeclared (first use in this function)

CPU_SETSIZE is a Linux extension in <sched.h>; a bit more portable
is using sysconf if _SC_NPROCESSORS_CONF is defined (several platforms
have it, including Cygwin).  Ultimately, I would have preferred to
use gnulib's 'nproc' module, but it is currently under an incompatible
license.

* src/qemu/qemu_conf.h (QEMUD_CPUMASK_LEN): Provide definition on
cygwin.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_conf.h