[libgda] Fix build with libsecret enable
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Fix build with libsecret enable
- Date: Sun, 21 Oct 2018 20:55:41 +0000 (UTC)
commit d5103eb4f8d37dfa022d87c91bd2096fbd591b7c
Author: Daniel Espinosa <esodan gmail com>
Date: Sun Oct 21 15:54:08 2018 -0500
Fix build with libsecret enable
libgda/gda-config.c | 3 ++-
meson.build | 9 ++++++++-
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-config.c b/libgda/gda-config.c
index 0cfc4a9fc..ce98abe47 100644
--- a/libgda/gda-config.c
+++ b/libgda/gda-config.c
@@ -500,7 +500,8 @@ secret_password_found_cb (GObject *source_object, GAsyncResult *res, gchar *dsnn
gchar *auth;
GError *error = NULL;
auth = secret_password_lookup_finish (res, &error);
- if (auth) {
+ GdaConfigPrivate *priv = gda_config_get_instance_private (unique_instance);
+ if (auth) {
GdaDsnInfo *dsn;
dsn = gda_config_get_dsn_info (dsnname);
if (dsn) {
diff --git a/meson.build b/meson.build
index fd79e86bc..25215603e 100644
--- a/meson.build
+++ b/meson.build
@@ -223,6 +223,13 @@ if soup_dep.found() and get_option('with-libsoup')
libgda_dep += [soup_dep]
endif
+
+libsecret_dep = dependency('libsecret-1', required: false)
+if libsecret_dep.found() and get_option('with-libsecret')
+ libgda_dep += [libsecret_dep]
+ c_args += '-DHAVE_LIBSECRET'
+endif
+
if get_option('enable-debug')
c_args += '-DGDA_DEBUG'
endif
@@ -360,4 +367,4 @@ subdir('tests')
subdir('testing')
if get_option('with-examples')
subdir('examples')
-endif
+endif
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]