[gnome-shell] shell/util: Don't compile in unused code when !HAVE_SYSTEMD
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shell/util: Don't compile in unused code when !HAVE_SYSTEMD
- Date: Mon, 25 Jan 2021 10:29:01 +0000 (UTC)
commit bbb2f2603adc64a5e8cf2b1f453306d89274c58b
Author: Daniel van Vugt <daniel van vugt canonical com>
Date: Mon Jan 25 17:01:29 2021 +0800
shell/util: Don't compile in unused code when !HAVE_SYSTEMD
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3620
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1588>
src/shell-util.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/src/shell-util.c b/src/shell-util.c
index 37b0cfaf23..ab8046a5a8 100644
--- a/src/shell-util.c
+++ b/src/shell-util.c
@@ -570,6 +570,7 @@ shell_util_get_uid (void)
return getuid ();
}
+#ifdef HAVE_SYSTEMD
typedef struct {
GDBusConnection *connection;
gchar *command;
@@ -692,6 +693,7 @@ on_systemd_job_removed_cb (GDBusConnection *connection,
g_object_unref (task);
}
+#endif /* HAVE_SYSTEMD */
static void
shell_util_systemd_call (const char *command,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]