]> 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)
committerJim Fehlig <jfehlig@suse.com>
Thu, 27 Sep 2012 16:27:33 +0000 (10:27 -0600)
commit416eca189b1934cfa8575ab72d142ec77600fcf9
tree213d122ef24126c1e02dd77f9ab6f738f444fecf
parenta5fa3322c8ffe0a5ec4cb77f76406a6c3f61302c
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.
configure.ac
src/xen/block_stats.c
src/xen/xs_internal.c