summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2009-02-16 22:45:53 -0500
committerRay Strode <rstrode@redhat.com>2009-02-16 22:45:53 -0500
commitf438a4cf0b78c5c6b8b073af0ba3558213f48cf1 (patch)
tree6238f39efc2e2165643c10529dcac76cd1d53c23
parentd5f5aaa1a76ecc152adcc16dc9a7525b014217bd (diff)
a DONT_NEED_X preprocessor guard to keep things testabledbus-attempt
We're changing the way the wayland server advertises it's address, but we haven't updated the clients yet. This preprocessor define is a stop gap to keep things testable.
-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