summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/dbus-launch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index 425914a1..7217d5b3 100644
--- a/tools/dbus-launch.c
+++ b/tools/dbus-launch.c
@@ -846,7 +846,9 @@ main (int argc, char **argv)
dbus_bool_t user_bus_supported = FALSE;
DBusString user_bus;
const char *error_str;
+#ifdef DBUS_BUILD_X11
DBusError error = DBUS_ERROR_INIT;
+#endif
exit_with_session = FALSE;
config_file = NULL;