Re: [libvirt] [PATCH] build: Don't use code with dbus_message_unref when built without dbus

2014-04-14 Thread Daniel P. Berrange
On Mon, Apr 14, 2014 at 04:43:09PM +0200, Martin Kletzander wrote: > diff --git a/src/util/virnodesuspend.c b/src/util/virnodesuspend.c > index 59b84ef..60b86ee 100644 > --- a/src/util/virnodesuspend.c > +++ b/src/util/virnodesuspend.c > @@ -267,7 +268,14 @@ virNodeSuspendSupportsTargetPMUtils(unsi

[libvirt] [PATCH] build: Don't use code with dbus_message_unref when built without dbus

2014-04-14 Thread Martin Kletzander
In order to do that, virNodeSuspendSupportsTargetPMUtils() and virSystemdPMSupportTarget() are created even when pm-utils and dbus are compiled out, respectively, but in that case returning -2 meaning "unavailable" (this return code was already used for unavailability before). Error is reported in