From be90aa002621a6f0693f56aa5421186ca94c169e Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Thu, 20 Nov 2014 08:48:19 -0700 Subject: [PATCH] build: fix build when not using dbus 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 --- src/util/virdbuspriv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virdbuspriv.h b/src/util/virdbuspriv.h index 424774659e..74b395f70d 100644 --- a/src/util/virdbuspriv.h +++ b/src/util/virdbuspriv.h @@ -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 {