summaryrefslogtreecommitdiff
path: root/x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c')
-rw-r--r--x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c b/x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c
new file mode 100644
index 000000000000..eded373dbc64
--- /dev/null
+++ b/x11/gnome-panel/files/patch-modules_action-button_gp-lock-screen-applet.c
@@ -0,0 +1,28 @@
+--- modules/action-button/gp-lock-screen-applet.c.orig 2023-07-10 18:48:25 UTC
++++ modules/action-button/gp-lock-screen-applet.c
+@@ -20,7 +20,9 @@
+
+ #include <gio/gdesktopappinfo.h>
+ #include <glib/gi18n-lib.h>
++#ifdef __linux__
+ #include <systemd/sd-journal.h>
++#endif
+
+ #include "gpab-screensaver-gen.h"
+
+@@ -209,6 +211,7 @@ screensaver_cb (GSimpleAction *action,
+ static void
+ child_setup (gpointer user_data)
+ {
++#ifdef __linux__
+ GAppInfo *info;
+ const gchar *id;
+ gint stdout_fd;
+@@ -230,6 +233,7 @@ child_setup (gpointer user_data)
+ dup2 (stderr_fd, STDERR_FILENO);
+ close (stderr_fd);
+ }
++#endif
+ }
+
+ static void