summaryrefslogtreecommitdiff
path: root/test/nm-dhcp-opt-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/nm-dhcp-opt-test.c')
-rw-r--r--test/nm-dhcp-opt-test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/nm-dhcp-opt-test.c b/test/nm-dhcp-opt-test.c
index bc871756de..9fe2e699f5 100644
--- a/test/nm-dhcp-opt-test.c
+++ b/test/nm-dhcp-opt-test.c
@@ -260,7 +260,9 @@ int main (int argc, char **argv)
DBusConnection *connection;
DBusError error;
+#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
+#endif
dbus_error_init (&error);
connection = dbus_bus_get (DBUS_BUS_SYSTEM, &error);