summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2013-11-06 02:03:05 +0100
committerKay Sievers <kay@vrfy.org>2013-11-06 02:03:05 +0100
commit2270309471213a3c960543e523130627e9cb10e2 (patch)
tree78ca05a88aebf62fb2f91a0e3b5a5d493e8c392d /src/libsystemd-bus
parent95b015de3849d8d8d03d9441ae1682a04c38833b (diff)
bus: test-bus-marshal - make dbus-1 optional
Diffstat (limited to 'src/libsystemd-bus')
-rw-r--r--src/libsystemd-bus/test-bus-marshal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libsystemd-bus/test-bus-marshal.c b/src/libsystemd-bus/test-bus-marshal.c
index 2a27e623f6..ae61476d57 100644
--- a/src/libsystemd-bus/test-bus-marshal.c
+++ b/src/libsystemd-bus/test-bus-marshal.c
@@ -27,7 +27,9 @@
#include <gio/gio.h>
#endif
+#ifdef HAVE_DBUS
#include <dbus.h>
+#endif
#include "log.h"
#include "util.h"
@@ -126,6 +128,7 @@ int main(int argc, char *argv[]) {
}
#endif
+#ifdef HAVE_DBUS
{
DBusMessage *w;
DBusError error;
@@ -138,6 +141,7 @@ int main(int argc, char *argv[]) {
} else
dbus_message_unref(w);
}
+#endif
m = sd_bus_message_unref(m);