]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
rpc: fix build failure with older dbus
authorEric Blake <eblake@redhat.com>
Tue, 4 Dec 2012 22:45:11 +0000 (15:45 -0700)
committerEric Blake <eblake@redhat.com>
Tue, 4 Dec 2012 22:50:11 +0000 (15:50 -0700)
commit2215befc8bc3853bec53a3c61aeacb215b5353c5
treeca740726f87e4e62550783c0ac5cb7fbee7eb57e
parentcab0cfd5cfa9c2d2dfa9e04d586211f4db61ae32
rpc: fix build failure with older dbus

RHEL 6.3 uses dbus-devel-1.2.24, which lacked support for the
DBUS_TYPE_UNIX_FD define (contrast with Fedora 18 using 1.6.8).
But since it is an older dbus, it also lacks support for shutdown
inhibitions as provided by newer systemd.

Compilation failure introduced in commit 31330926.

* src/rpc/virnetserver.c (virNetServerAddShutdownInhibition):
Compile out if dbus is too old.
src/rpc/virnetserver.c