X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2Fdatabase.cc;h=5cc076587a88785a5801eafcc56df2abef997d20;hb=01f550803c4cf7bcb4a3df43a56163767c170649;hp=52ed618b81a6e3815b45d89c9e486d871d508e91;hpb=f0dfda5c7797f9db81ce35d270fe0ac406c7fca1;p=notmuch diff --git a/lib/database.cc b/lib/database.cc index 52ed618b..5cc07658 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -649,7 +649,9 @@ notmuch_database_open (const char *path, } /* Initialize the GLib type system and threads */ +#if !GLIB_CHECK_VERSION(2, 35, 1) g_type_init (); +#endif /* Initialize gmime */ if (! initialized) {