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 (); return getuid ();
} }
#ifdef HAVE_SYSTEMD
typedef enum { typedef enum {
SYSTEMD_CALL_FLAGS_NONE = 0, SYSTEMD_CALL_FLAGS_NONE = 0,
SYSTEMD_CALL_FLAGS_WATCH_JOB = 1 << 0, SYSTEMD_CALL_FLAGS_WATCH_JOB = 1 << 0,
} SystemdFlags; } SystemdFlags;
#ifdef HAVE_SYSTEMD
typedef struct { typedef struct {
GDBusConnection *connection; GDBusConnection *connection;
gchar *command; gchar *command;