aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-06-22 10:51:40 +0200
committerAleksander Morgado <aleksander@aleksander.es>2017-06-22 10:51:40 +0200
commit4d6896f0d919cc0e474a575f6a809ad5f7a121e1 (patch)
treebb2bd1dd179fecae39352b506d287d8a85e426b9 /src
parentb2a859a78292175f70dac46d3999c92901fbc264 (diff)
build: rename --with-suspend-resume to --with-systemd-suspend-resume
And only define WITH_SYSTEMD_SUSPEND_RESUME when enabled. We already have other systemd specific features under the --with-systemd-* name scheme, so consolidate that, given that we don't have any other method to support suspend/resume notifications.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am2
-rw-r--r--src/main.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 402b2ae9..5a735be9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -354,7 +354,7 @@ ModemManager_SOURCES += mm-auth-provider-polkit.h mm-auth-provider-polkit.c
endif
# Additional suspend/resume support via systemd
-if SUSPEND_RESUME_SYSTEMD
+if WITH_SYSTEMD_SUSPEND_RESUME
ModemManager_SOURCES += mm-sleep-monitor.h mm-sleep-monitor.c
endif
diff --git a/src/main.c b/src/main.c
index b61cabd9..bf2564c9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -30,7 +30,7 @@
#include "mm-log.h"
#include "mm-context.h"
-#if WITH_SUSPEND_RESUME
+#if defined WITH_SYSTEMD_SUSPEND_RESUME
# include "mm-sleep-monitor.h"
#endif
@@ -55,7 +55,7 @@ quit_cb (gpointer user_data)
return FALSE;
}
-#if WITH_SUSPEND_RESUME
+#if defined WITH_SYSTEMD_SUSPEND_RESUME
static void
sleeping_cb (MMSleepMonitor *sleep_monitor)
@@ -165,7 +165,7 @@ main (int argc, char *argv[])
name_lost_cb,
NULL,
NULL);
-#if WITH_SUSPEND_RESUME
+#if defined WITH_SYSTEMD_SUSPEND_RESUME
{
MMSleepMonitor *sleep_monitor;