aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorRukun Mao <rmao@google.com>2022-05-13 20:43:32 +0000
committerAleksander Morgado <aleksander@aleksander.es>2022-06-09 08:32:13 +0000
commit3da84c207902b65b7b6a2de9c497966844f87dd9 (patch)
tree17c915338e26082af27f82fc95bc394bb3911d8a /src/main.c
parentac06052b97cc02e60ae1ed7a551727b3c14d6a22 (diff)
suspend: add suspend/resume support with powerd on ChromeOS
ModemManager handles suspend and resume signals sent from powerd Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/547
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 8516d7bc..368df7ae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -31,7 +31,7 @@
#include "mm-base-manager.h"
#include "mm-context.h"
-#if defined WITH_SYSTEMD_SUSPEND_RESUME
+#if defined WITH_SUSPEND_RESUME
# include "mm-sleep-monitor.h"
#endif
@@ -56,7 +56,7 @@ quit_cb (gpointer user_data)
return FALSE;
}
-#if defined WITH_SYSTEMD_SUSPEND_RESUME
+#if defined WITH_SUSPEND_RESUME
static void
sleeping_cb (MMSleepMonitor *sleep_monitor)
@@ -193,7 +193,7 @@ main (int argc, char *argv[])
name_lost_cb,
NULL,
NULL);
-#if defined WITH_SYSTEMD_SUSPEND_RESUME
+#if defined WITH_SUSPEND_RESUME
{
MMSleepMonitor *sleep_monitor;