summaryrefslogtreecommitdiff
path: root/packages/dbus/dbus-1.1.20/fix-dbus-launch-x11.patch
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dbus/dbus-1.1.20/fix-dbus-launch-x11.patch')
-rw-r--r--packages/dbus/dbus-1.1.20/fix-dbus-launch-x11.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/dbus/dbus-1.1.20/fix-dbus-launch-x11.patch b/packages/dbus/dbus-1.1.20/fix-dbus-launch-x11.patch
new file mode 100644
index 0000000000..20c8d1b501
--- /dev/null
+++ b/packages/dbus/dbus-1.1.20/fix-dbus-launch-x11.patch
@@ -0,0 +1,14 @@
+Index: dbus-1.1.20/tools/dbus-launch.c
+===================================================================
+--- dbus-1.1.20.orig/tools/dbus-launch.c
++++ dbus-1.1.20/tools/dbus-launch.c
+@@ -966,7 +966,9 @@ main (int argc, char **argv)
+ char write_pid_fd_as_string[MAX_FD_LEN];
+ char write_address_fd_as_string[MAX_FD_LEN];
+
++#ifdef DBUS_BUILD_X11
+ xdisplay = NULL;
++#endif
+
+ if (close_stderr)
+ do_close_stderr ();