summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);