mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 12:50:33 +01:00
dhcp-helper: call g_type_init() to support pre 2.36.0 glib
https://bugzilla.gnome.org/show_bug.cgi?id=758614 [thaller@redhat.com: original patch modified to use nm_g_type_init()]
This commit is contained in:
parent
960127422d
commit
7a97d16944
1 changed files with 2 additions and 0 deletions
|
|
@ -97,6 +97,8 @@ main (int argc, char *argv[])
|
|||
GDBusConnection *connection;
|
||||
GError *error = NULL;
|
||||
|
||||
nm_g_type_init ();
|
||||
|
||||
connection = g_dbus_connection_new_for_address_sync ("unix:path=" NMRUNDIR "/private-dhcp",
|
||||
G_DBUS_CONNECTION_FLAGS_AUTHENTICATION_CLIENT,
|
||||
NULL, NULL, &error);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue