[gdm] Fix build failure when libxdmcp is not available. Fixes bug #616984.



commit 69f3856bf42655c224b8a06df16774787e2933fa
Author: Brian Cameron <Brian Cameron sun com>
Date:   Mon May 3 15:58:04 2010 -0500

    Fix build failure when libxdmcp is not available.  Fixes bug #616984.

 daemon/gdm-manager.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-manager.c b/daemon/gdm-manager.c
index 4def8b6..ab0c9c1 100644
--- a/daemon/gdm-manager.c
+++ b/daemon/gdm-manager.c
@@ -294,7 +294,7 @@ gdm_manager_set_xdmcp_enabled (GdmManager *manager,
 
         if (manager->priv->xdmcp_enabled != enabled) {
                 manager->priv->xdmcp_enabled = enabled;
-
+#ifdef HAVE_LIBXDMCP
                 if (manager->priv->xdmcp_enabled) {
                         manager->priv->xdmcp_factory = gdm_xdmcp_display_factory_new (manager->priv->display_store);
                         if (manager->priv->started) {
@@ -308,6 +308,7 @@ gdm_manager_set_xdmcp_enabled (GdmManager *manager,
                         g_object_unref (manager->priv->xdmcp_factory);
                         manager->priv->xdmcp_factory = NULL;
                 }
+#endif
         }
 
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]