]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix compilation of legacy xen driver with Xen 4.2
authorJim Fehlig <jfehlig@suse.com>
Wed, 26 Sep 2012 21:20:35 +0000 (15:20 -0600)
committerCole Robinson <crobinso@redhat.com>
Thu, 18 Oct 2012 16:56:44 +0000 (12:56 -0400)
commit9875efbdc3dba253334fd7002b97a710084c5bbf
treed9aea81cae7897b6ce0bff874264f61133b0aa0f
parent440c15444a29064fd515cdd9b05f56a8ef595e95
Fix compilation of legacy xen driver with Xen 4.2

In Xen 4.2, xs.h is deprecated in favor of xenstore.h.  xs.h now
contains

#warning xs.h is deprecated use xenstore.h instead
#include <xenstore.h>

which fails compilation when warnings are treated as errors.

Introduce a configure-time check for xenstore.h and if found,
use it instead of xs.h.
(cherry picked from commit 416eca189b1934cfa8575ab72d142ec77600fcf9)
configure.ac
src/xen/block_stats.c
src/xen/xs_internal.c