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
@ -570,6 +570,7 @@ shell_util_get_uid (void)
|
|||||||
return getuid ();
|
return getuid ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_SYSTEMD
|
||||||
typedef struct {
|
typedef struct {
|
||||||
GDBusConnection *connection;
|
GDBusConnection *connection;
|
||||||
gchar *command;
|
gchar *command;
|
||||||
@ -692,6 +693,7 @@ on_systemd_job_removed_cb (GDBusConnection *connection,
|
|||||||
|
|
||||||
g_object_unref (task);
|
g_object_unref (task);
|
||||||
}
|
}
|
||||||
|
#endif /* HAVE_SYSTEMD */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
shell_util_systemd_call (const char *command,
|
shell_util_systemd_call (const char *command,
|
||||||
|
Loading…
Reference in New Issue
Block a user