summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/gnome_screensaver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gnome_screensaver.c b/tools/gnome_screensaver.c
index efa83609..e57609ba 100644
--- a/tools/gnome_screensaver.c
+++ b/tools/gnome_screensaver.c
@@ -159,9 +159,11 @@ void gnome_screensaver_control(int enable)
DBusGProxy *proxy;
gboolean ret;
+#ifdef GLIB_CHECK_VERSION
#if !GLIB_CHECK_VERSION(2,35,0)
g_type_init();
#endif
+#endif
#ifdef HAVE_MCE_DBUS_NAMES
error = NULL;