g_thread_init() is deprecated since Glib 2.23
This commit is contained in:
@@ -117,10 +117,13 @@ static bool nm_backend_init()
|
|||||||
nm_backend_t *this;
|
nm_backend_t *this;
|
||||||
|
|
||||||
g_type_init ();
|
g_type_init ();
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION(2,23,0)
|
||||||
if (!g_thread_supported())
|
if (!g_thread_supported())
|
||||||
{
|
{
|
||||||
g_thread_init(NULL);
|
g_thread_init(NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
INIT(this,
|
INIT(this,
|
||||||
.creds = nm_creds_create(),
|
.creds = nm_creds_create(),
|
||||||
|
|||||||
@@ -66,10 +66,13 @@ plugin_t *soup_plugin_create()
|
|||||||
private_soup_plugin_t *this;
|
private_soup_plugin_t *this;
|
||||||
|
|
||||||
g_type_init();
|
g_type_init();
|
||||||
|
|
||||||
|
#if !GLIB_CHECK_VERSION(2,23,0)
|
||||||
if (!g_thread_get_initialized())
|
if (!g_thread_get_initialized())
|
||||||
{
|
{
|
||||||
g_thread_init(NULL);
|
g_thread_init(NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
INIT(this,
|
INIT(this,
|
||||||
.public = {
|
.public = {
|
||||||
|
|||||||
Reference in New Issue
Block a user