summaryrefslogtreecommitdiff
path: root/test/test-os.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-os.c')
-rw-r--r--test/test-os.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test-os.c b/test/test-os.c
index ecec8f5..8ea86df 100644
--- a/test/test-os.c
+++ b/test/test-os.c
@@ -143,7 +143,9 @@ int main(void)
Suite *s = os_suite ();
SRunner *sr = srunner_create (s);
+#if !GLIB_CHECK_VERSION(2,35,1)
g_type_init();
+#endif
/* Upfront so we don't confuse valgrind */
osinfo_platform_get_type();