From 7d7e90a1bee57ae3c6ed82a210d5725be15602fa Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Wed, 3 Oct 2001 21:34:49 +0000 Subject: ifdef out the LDAP only bits. Cleans some warnings on startup svn path=/trunk/; revision=13389 --- addressbook/gui/component/addressbook-storage.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/addressbook-storage.c b/addressbook/gui/component/addressbook-storage.c index 6154969b14..1a89f86afb 100644 --- a/addressbook/gui/component/addressbook-storage.c +++ b/addressbook/gui/component/addressbook-storage.c @@ -97,8 +97,10 @@ addressbook_storage_setup (EvolutionShellComponent *shell_component, if (storage_path) g_free (storage_path); storage_path = g_concat_dir_and_file (evolution_homedir, ADDRESSBOOK_SOURCES_XML); +#ifdef HAVE_LDAP if (!load_source_data (storage_path)) deregister_storage (); +#endif } #ifdef HAVE_LDAP @@ -297,6 +299,7 @@ addressbook_storage_init_source_uri (AddressbookSource *source) static gboolean load_source_data (const char *file_path) { +#ifdef HAVE_LDAP xmlDoc *doc; xmlNode *root; xmlNode *child; @@ -376,6 +379,7 @@ load_source_data (const char *file_path) deregister_storage(); xmlFreeDoc (doc); +#endif return TRUE; } -- cgit v1.2.3