mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 15:45:54 +00:00
gobject: Add g_type_init() for older glibs
Older glib versions require g_type_init() to be called before using GObject.
This commit is contained in:
parent
d5c17b50bc
commit
eb58bc9ad0
@ -3394,6 +3394,9 @@ static int do_spice_init(RedsState *reds, SpiceCoreInterface *core_interface)
|
||||
{
|
||||
spice_info("starting %s", VERSION);
|
||||
|
||||
#if !GLIB_CHECK_VERSION(2,36,0)
|
||||
g_type_init();
|
||||
#endif
|
||||
if (core_interface->base.major_version != SPICE_INTERFACE_CORE_MAJOR) {
|
||||
spice_warning("bad core interface version");
|
||||
goto err;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user