summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2017-10-13 16:41:02 -0400
committerRay Strode <rstrode@redhat.com>2017-10-13 16:43:06 -0400
commit13e71c2825ecc83f841a14153ea4cf5e330c9fef (patch)
tree50c58280e170d084a0fc5f45a1f39783694c8f2d
parent19c2240855395b53b29a2ca294f2664cbd29968b (diff)
downloadgdm-13e71c2825ecc83f841a14153ea4cf5e330c9fef.tar.gz
manager: fix compile warning
commit 7e8243eecd0233f7ab92519207f2520794439b11 introduced a compiler warning if gdm is built with --enable-wayland and --disable-user-display-server This commit fixes that. https://bugzilla.gnome.org/show_bug.cgi?id=788963
-rw-r--r--daemon/gdm-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index c3293d95..9f06196e 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -2304,7 +2304,7 @@ create_user_session_for_display (GdmManager *manager,
char *display_auth_file = NULL;
char *display_seat_id = NULL;
char *display_id = NULL;
-#ifdef ENABLE_WAYLAND_SUPPORT
+#if defined(ENABLE_WAYLAND_SUPPORT) && defined(ENABLE_USER_DISPLAY_SERVER)
char *display_session_type = NULL;
gboolean greeter_is_wayland;
#endif
@@ -2316,7 +2316,7 @@ create_user_session_for_display (GdmManager *manager,
"remote-hostname", &remote_hostname,
"x11-authority-file", &display_auth_file,
"seat-id", &display_seat_id,
-#ifdef ENABLE_WAYLAND_SUPPORT
+#if defined(ENABLE_WAYLAND_SUPPORT) && defined(ENABLE_USER_DISPLAY_SERVER)
"session-type", &display_session_type,
#endif
NULL);