[gnome-shell/wip/carlosg/fix-non-systemd: 2/2] shell: Shuffle ifdef to fix !HAVE_SYSTEMD build
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/fix-non-systemd: 2/2] shell: Shuffle ifdef to fix !HAVE_SYSTEMD build
- Date: Sun, 13 Feb 2022 12:06:14 +0000 (UTC)
commit 57d681863ac847f44b2914c4fb9798e17ffb4c9f
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Feb 13 10:56:28 2022 +0100
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>
src/shell-util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/shell-util.c b/src/shell-util.c
index a336868130..aeb81a1aa8 100644
--- a/src/shell-util.c
+++ b/src/shell-util.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]