[libgda] Fixed compilation if LDAP is not available
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Fixed compilation if LDAP is not available
- Date: Tue, 23 Sep 2014 20:16:38 +0000 (UTC)
commit e4820b869a088c7cf5328ff4d7a7f5caf36e5e33
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon Sep 22 21:02:56 2014 +0200
Fixed compilation if LDAP is not available
tools/browser/browser-perspective.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tools/browser/browser-perspective.c b/tools/browser/browser-perspective.c
index c375997..2f5194f 100644
--- a/tools/browser/browser-perspective.c
+++ b/tools/browser/browser-perspective.c
@@ -27,7 +27,9 @@
#include "schema-browser/perspective-main.h"
#include "query-exec/perspective-main.h"
#include "data-manager/perspective-main.h"
-#include "ldap-browser/perspective-main.h"
+#ifdef HAVE_LDAP
+ #include "ldap-browser/perspective-main.h"
+#endif
#include "dummy-perspective/perspective-main.h"
static GRecMutex init_rmutex;
@@ -320,8 +322,10 @@ _factories_init (void)
pers = data_manager_perspective_get_factory ();
factories = g_slist_append (factories, pers);
+#ifdef HAVE_LDAP
pers = ldap_browser_perspective_get_factory ();
factories = g_slist_append (factories, pers);
+#endif
pers = dummy_perspective_get_factory ();
factories = g_slist_append (factories, pers);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]