diff options
author | Stefano Karapetsas <[email protected]> | 2014-04-22 18:44:37 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-04-22 18:44:37 +0200 |
commit | 80be90bb422ef8cb5a28c7ff3fe2a337dce8c368 (patch) | |
tree | 412b4a342f93e8cc793d3b7b8e3d779d2a51f694 /mate-session/gsm-manager.c | |
parent | a73419b7c73cf840ad76b6110f178b1156612bf9 (diff) | |
download | mate-session-manager-80be90bb422ef8cb5a28c7ff3fe2a337dce8c368.tar.bz2 mate-session-manager-80be90bb422ef8cb5a28c7ff3fe2a337dce8c368.tar.xz |
Allow to build with upower 0.99
Diffstat (limited to 'mate-session/gsm-manager.c')
-rw-r--r-- | mate-session/gsm-manager.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c index eda565b..638ef10 100644 --- a/mate-session/gsm-manager.c +++ b/mate-session/gsm-manager.c @@ -1163,10 +1163,10 @@ manager_attempt_hibernate (GsmManager *manager) gsm_systemd_attempt_hibernate (systemd); } #endif -#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) +#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0) else { #endif -#ifdef HAVE_UPOWER +#if defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0) can_hibernate = up_client_get_can_hibernate (manager->priv->up_client); if (can_hibernate) { @@ -1182,7 +1182,7 @@ manager_attempt_hibernate (GsmManager *manager) } } #endif -#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) +#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0) } #endif } @@ -1208,10 +1208,10 @@ manager_attempt_suspend (GsmManager *manager) gsm_systemd_attempt_suspend (systemd); } #endif -#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) +#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0) else { #endif -#ifdef HAVE_UPOWER +#if defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0) can_suspend = up_client_get_can_suspend (manager->priv->up_client); if (can_suspend) { @@ -1227,7 +1227,7 @@ manager_attempt_suspend (GsmManager *manager) } } #endif -#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) +#if defined(HAVE_SYSTEMD) && defined(HAVE_UPOWER) && !UP_CHECK_VERSION(0, 99, 0) } #endif } |