shell: Shuffle ifdef to fix !HAVE_SYSTEMD build

The internal SystemdFlags enum is used from common code for
both systemd availability cases. Shuffle it outside the ifdef
so it's seen everywhere.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2177>
This commit is contained in:
Carlos Garnacho 2022-02-13 10:56:28 +01:00 committed by Marge Bot
parent 93f9080a59
commit 57d681863a

View File

@ -515,12 +515,12 @@ shell_util_get_uid (void)
return getuid ();
}
#ifdef HAVE_SYSTEMD
typedef enum {
SYSTEMD_CALL_FLAGS_NONE = 0,
SYSTEMD_CALL_FLAGS_WATCH_JOB = 1 << 0,
} SystemdFlags;
#ifdef HAVE_SYSTEMD
typedef struct {
GDBusConnection *connection;
gchar *command;