From: Hilko Bengen <bengen@debian.org>
Date: Sat, 1 Jun 2013 12:07:35 +0200
Subject: Don't call g_type_init when compiling with newer glib versions

---
 src/ldmtool.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ldmtool.c b/src/ldmtool.c
index 6e58883..2635b80 100644
--- a/src/ldmtool.c
+++ b/src/ldmtool.c
@@ -777,7 +777,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);
 
