]> git.ipfire.org Git - thirdparty/libvirt.git/commit
build: fix build with older libxml2
authorEric Blake <eblake@redhat.com>
Wed, 7 Dec 2011 22:06:18 +0000 (15:06 -0700)
committerDaniel Veillard <veillard@redhat.com>
Thu, 8 Dec 2011 03:37:24 +0000 (11:37 +0800)
commitf59a94175796879e5d5f226a7818c04b8c0e67d2
tree0fa922bd6d1c246f208be74017fa90c1e4933615
parente970863746448a299533a5b3b4b2cecba361544c
build: fix build with older libxml2

On RHEL 5, with libxml2-2.6.26, the build failed with:
virsh.c: In function 'vshNodeIsSuperset':
virsh.c:11951: warning: implicit declaration of function 'xmlChildElementCount'

(or if warnings aren't errors, a link failure later on).

* src/util/xml.h (virXMLChildElementCount): New prototype.
* src/util/xml.c (virXMLChildElementCount): New function.
* src/libvirt_private.syms (xml.h): Export it.
* tools/virsh.c (vshNodeIsSuperset): Use it.
src/libvirt_private.syms
src/util/xml.c
src/util/xml.h
tools/virsh.c