---
src/ldmtool.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/ldmtool.c b/src/ldmtool.c
index 48043e8..9f89861 100644
--- a/src/ldmtool.c
+++ b/src/ldmtool.c
@@ -779,7 +779,9 @@ main(int argc, char *argv[])
}
g_option_context_free(context);
+#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init();
+#endif
LDM * const ldm = ldm_new(&err);
--
2.0.0