]> xenbits.xensource.com Git - qemu-xen-4.6-testing.git/commit
qemu-xen-trad: fix sys-queue.h usage on BSD systems
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 7 Jun 2012 18:44:01 +0000 (19:44 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 7 Jun 2012 18:46:24 +0000 (19:46 +0100)
commit50c553be472c9f4b05a0526c0aae98709ca9ffff
tree1ebbe3b6685e88f9e480049608321d4e36e92e59
parentcbf0f291d4f1d40c59f56b8bd73292b8ad4f84b5
qemu-xen-trad: fix sys-queue.h usage on BSD systems

BSD systems already have a sys/queue.h file, which has more macros
than the one Qemu uses, and some header files depend on having that
macros defined (sys/disk.h for example). Disable sys-queue.h on BSD
systems and include the native one.

This is not a backport because the original patch is too dificult to
backport, it's commit 72cf2d4f0e181d0d3a3122e04129c58a95da713e.

Doing a diff -bB shows that the Qemu version is just a stripped
version of the original NetBSD header, with many macros removed, but
no new ones added.

Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
sys-queue.h