]> xenbits.xensource.com Git - libvirt.git/commitdiff
build: fix build when not using dbus
authorEric Blake <eblake@redhat.com>
Thu, 20 Nov 2014 15:48:19 +0000 (08:48 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 20 Nov 2014 15:48:19 +0000 (08:48 -0700)
Commit c0e7022 breaks on a machine that lacks dbus headers:

In file included from util/virdbus.c:24:0:
util/virdbuspriv.h:31:3: error: unknown type name 'dbus_int16_t'

* src/util/virdbuspriv.h (DBusBasicValue): Only provide fallback
when dbus is compiled.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/util/virdbuspriv.h

index 424774659e9a9fa04f011767f64d7e7feb053834..74b395f70d9752d6cdb40420b0f048f7512ef453 100644 (file)
@@ -24,7 +24,7 @@
 
 # include "virdbus.h"
 
-# if !HAVE_DBUSBASICVALUE
+# if defined(WITH_DBUS) && !HAVE_DBUSBASICVALUE
 /* Copied (and simplified) from dbus 1.6.12, for use with older dbus headers */
 typedef union
 {