summaryrefslogtreecommitdiff
path: root/wayland-system-compositor.c
diff options
context:
space:
mode:
Diffstat (limited to 'wayland-system-compositor.c')
-rw-r--r--wayland-system-compositor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wayland-system-compositor.c b/wayland-system-compositor.c
index d15127f..03cd25d 100644
--- a/wayland-system-compositor.c
+++ b/wayland-system-compositor.c
@@ -1128,7 +1128,11 @@ int main(int argc, char *argv[])
GOptionContext *context;
struct wl_event_loop *loop;
struct wlsc_dbus *dbus;
+#ifdef DONT_NEED_X
char socket_name[96];
+#else
+ char socket_name[] = "\0wayland";
+#endif
context = g_option_context_new(NULL);
g_option_context_add_main_entries(context, option_entries, "Wayland");
@@ -1157,7 +1161,9 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
+#ifdef DONT_NEED_X
generate_socket_name (socket_name, sizeof socket_name);
+#endif
/* FIXME: should probably generate a new name and loop in the extremely
* off chance of EADDRINUSE