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>
This commit is contained in:
Daniel van Vugt 2021-01-25 17:01:29 +08:00
parent eb4f6740c3
commit bbb2f2603a

View File

@ -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,