diff options
Diffstat (limited to 'pkcs11/xdg-store')
-rw-r--r-- | pkcs11/xdg-store/gkm-xdg-standalone.c | 2 | ||||
-rw-r--r-- | pkcs11/xdg-store/tests/check-xdg-module.c | 2 | ||||
-rw-r--r-- | pkcs11/xdg-store/tests/test-xdg-module.c | 2 | ||||
-rw-r--r-- | pkcs11/xdg-store/tests/test-xdg-trust.c | 2 |
4 files changed, 8 insertions, 0 deletions
diff --git a/pkcs11/xdg-store/gkm-xdg-standalone.c b/pkcs11/xdg-store/gkm-xdg-standalone.c index 8dbfa134..e9f7bb2f 100644 --- a/pkcs11/xdg-store/gkm-xdg-standalone.c +++ b/pkcs11/xdg-store/gkm-xdg-standalone.c @@ -57,7 +57,9 @@ C_GetFunctionList (CK_FUNCTION_LIST_PTR_PTR list) if (!list) return CKR_ARGUMENTS_BAD; +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); +#endif *list = gkm_xdg_store_get_functions (); return CKR_OK; diff --git a/pkcs11/xdg-store/tests/check-xdg-module.c b/pkcs11/xdg-store/tests/check-xdg-module.c index 4ed03a0b..c4c171ca 100644 --- a/pkcs11/xdg-store/tests/check-xdg-module.c +++ b/pkcs11/xdg-store/tests/check-xdg-module.c @@ -52,7 +52,9 @@ on_p11_tests_log (int level, const char *section, const char *message) int main (int argc, const char *argv[]) { +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); +#endif p11_tests_set_log_func (on_p11_tests_log); p11_tests_set_unexpected (1); diff --git a/pkcs11/xdg-store/tests/test-xdg-module.c b/pkcs11/xdg-store/tests/test-xdg-module.c index 86eedf8a..5f375786 100644 --- a/pkcs11/xdg-store/tests/test-xdg-module.c +++ b/pkcs11/xdg-store/tests/test-xdg-module.c @@ -265,7 +265,9 @@ null_log_handler (const gchar *log_domain, GLogLevelFlags log_level, int main (int argc, char **argv) { +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); +#endif g_test_init (&argc, &argv, NULL); /* Suppress these messages in tests */ diff --git a/pkcs11/xdg-store/tests/test-xdg-trust.c b/pkcs11/xdg-store/tests/test-xdg-trust.c index 7fb993b3..cc299aae 100644 --- a/pkcs11/xdg-store/tests/test-xdg-trust.c +++ b/pkcs11/xdg-store/tests/test-xdg-trust.c @@ -842,7 +842,9 @@ null_log_handler (const gchar *log_domain, GLogLevelFlags log_level, int main (int argc, char **argv) { +#if !GLIB_CHECK_VERSION(2,35,0) g_type_init (); +#endif g_test_init (&argc, &argv, NULL); /* Suppress these messages in tests */ |