summaryrefslogtreecommitdiff
path: root/mate-session/gsm-logout-dialog.c
diff options
context:
space:
mode:
authorOlaf Leidinger <[email protected]>2015-11-14 16:46:28 +0100
committerMonsta <[email protected]>2015-12-13 18:29:36 +0300
commitd16534d01b9967e6ffd09dafd8c8bba74d2b8a1e (patch)
tree725af04497d8151fae30c5cdadaf8c8785965e0c /mate-session/gsm-logout-dialog.c
parente34c9b384da648c6d3024dcb96f99aecc1da4003 (diff)
downloadmate-session-manager-d16534d01b9967e6ffd09dafd8c8bba74d2b8a1e.tar.bz2
mate-session-manager-d16534d01b9967e6ffd09dafd8c8bba74d2b8a1e.tar.xz
compile fix for upower 0.99 series
upower 0.99 has lost support for hibernate and suspend. This leads to undefined references to up_client_get_can_suspend and up_client_get_can_hibernate on my system. This patch removes any call to those functions for upower >= 0.99.
Diffstat (limited to 'mate-session/gsm-logout-dialog.c')
-rw-r--r--mate-session/gsm-logout-dialog.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/mate-session/gsm-logout-dialog.c b/mate-session/gsm-logout-dialog.c
index 464101b..f53c197 100644
--- a/mate-session/gsm-logout-dialog.c
+++ b/mate-session/gsm-logout-dialog.c
@@ -215,10 +215,10 @@ gsm_logout_supports_system_suspend (GsmLogoutDialog *logout_dialog)
if (LOGIND_RUNNING())
ret = gsm_systemd_can_suspend (logout_dialog->priv->systemd);
#endif
-#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER)
+#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER_HIBERNATE_SUSPEND)
else
#endif
-#ifdef HAVE_UPOWER
+#ifdef HAVE_UPOWER_HIBERNATE_SUSPEND
ret = up_client_get_can_suspend (logout_dialog->priv->up_client);
#endif
return ret;
@@ -233,10 +233,10 @@ gsm_logout_supports_system_hibernate (GsmLogoutDialog *logout_dialog)
if (LOGIND_RUNNING())
ret = gsm_systemd_can_hibernate (logout_dialog->priv->systemd);
#endif
-#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER)
+#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER_HIBERNATE_SUSPEND)
else
#endif
-#ifdef HAVE_UPOWER
+#ifdef HAVE_UPOWER_HIBERNATE_SUSPEND
ret = up_client_get_can_hibernate (logout_dialog->priv->up_client);
#endif
return ret;