summaryrefslogtreecommitdiff
path: root/packages/dbus/dbus-1.1.20/fix-dbus-launch-x11.patch
blob: 20c8d1b501ba33bb69b247388b3214048c6ff2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 ();