[gnome-shell/wip/carlosg/fix-non-systemd] shell: Shuffle ifdef to fix !HAVE_SYSTEMD build




commit e1f89191ab37a63e816051426efdac483f82c62b
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.

 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]