mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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:
parent
eb4f6740c3
commit
bbb2f2603a
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue