dhcp-helper: call g_type_init() to support pre 2.36.0 glib

https://bugzilla.gnome.org/show_bug.cgi?id=758614

(cherry picked from commit 7a97d16944)
This commit is contained in:
Glenn Washburn 2015-11-24 19:42:08 +00:00 committed by Thomas Haller
parent ad572bedbe
commit 061b7bbde8

View file

@ -160,6 +160,10 @@ main (int argc, char *argv[])
GDBusConnection *connection;
GError *error = NULL;
#if !GLIB_CHECK_VERSION (2, 36, 0)
g_type_init ();
#endif
connection = g_dbus_connection_new_for_address_sync ("unix:path=" NMRUNDIR "/private-dhcp",
G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT,
NULL, NULL, &error);