[Libguestfs] [libldm 3/3] Don't call g_type_init when compiling with newer glib versions

Hilko Bengen bengen at hilluzination.de
Fri Jun 13 20:52:12 UTC 2014


---
 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




More information about the Libguestfs mailing list