summaryrefslogtreecommitdiff
blob: 87e810646c4e3057d4a91eb9d41ec0bc486fc2de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index 5d6e77e..6a10ffa 100644
--- a/tools/dbus-launch.c
+++ b/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 ();