summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
-rw-r--r--util_liveinfo/src/liveinfo.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 6e3e298..18fa179 100644
--- a/src/main.c
+++ b/src/main.c
@@ -338,7 +338,9 @@ int main(int argc, char *argv[])
return -EFAULT;
}
+#if (GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION < 36)
g_type_init();
+#endif
/*!
* \note
diff --git a/util_liveinfo/src/liveinfo.c b/util_liveinfo/src/liveinfo.c
index 0e38a7c..9ca53b3 100644
--- a/util_liveinfo/src/liveinfo.c
+++ b/util_liveinfo/src/liveinfo.c
@@ -1764,7 +1764,10 @@ int main(int argc, char *argv[])
} while (c != -1);
ecore_init();
+
+#if (GLIB_MAJOR_VERSION <= 2 && GLIB_MINOR_VERSION < 36)
g_type_init();
+#endif
com_core_add_event_callback(CONNECTOR_DISCONNECTED, disconnected_cb, NULL);
com_core_add_event_callback(CONNECTOR_CONNECTED, connected_cb, NULL);