[libvirt] [PATCH] Fix compilation of legacy xen driver with Xen 4.2

Eric Blake eblake at redhat.com
Wed Sep 26 22:39:04 UTC 2012


On 09/26/2012 03:49 PM, Jim Fehlig wrote:
> 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          |    2 ++
>  src/xen/block_stats.c |    6 +++++-
>  src/xen/xs_internal.c |    6 +++++-
>  3 files changed, 12 insertions(+), 2 deletions(-)

ACK.

-- 
Eric Blake   eblake at 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: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120926/a98275d5/attachment-0001.sig>


More information about the libvir-list mailing list