diff options
Diffstat (limited to 'examples/C/glib/monitor-nm-running-dbus-glib.c')
-rw-r--r-- | examples/C/glib/monitor-nm-running-dbus-glib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/C/glib/monitor-nm-running-dbus-glib.c b/examples/C/glib/monitor-nm-running-dbus-glib.c index 3290fb1ac..0b01a57f0 100644 --- a/examples/C/glib/monitor-nm-running-dbus-glib.c +++ b/examples/C/glib/monitor-nm-running-dbus-glib.c @@ -71,8 +71,10 @@ main (int argc, char *argv[]) GError *err = NULL; gboolean nm_running; +#if !GLIB_CHECK_VERSION (2, 35, 0) /* Initialize GType system */ g_type_init (); +#endif g_print ("Monitor 'org.freedesktop.NetworkManager' D-Bus name\n"); g_print ("===================================================\n"); |