From 57d681863ac847f44b2914c4fb9798e17ffb4c9f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Sun, 13 Feb 2022 10:56:28 +0100 Subject: [PATCH] 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: --- 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 a33686813..aeb81a1aa 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;