summaryrefslogtreecommitdiff
path: root/x11/gnome-panel/files/patch-modules_menu_gp-menu-utils.c
blob: 386087dbc4644b9cb84bedffe0da037d01214bd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- modules/menu/gp-menu-utils.c.orig	2024-10-06 18:30:22 UTC
+++ modules/menu/gp-menu-utils.c
@@ -20,7 +20,9 @@
 #include <glib/gi18n-lib.h>
 #include <gtk/gtk.h>
 #include <libgnome-desktop/gnome-systemd.h>
+#ifdef __linux__
 #include <systemd/sd-journal.h>
+#endif
 
 #include "gp-menu-utils.h"
 
@@ -262,6 +264,7 @@ child_setup (gpointer user_data)
 static void
 child_setup (gpointer user_data)
 {
+#ifdef __linux__
   GAppInfo *info;
   const gchar *id;
   gint stdout_fd;
@@ -283,6 +286,7 @@ child_setup (gpointer user_data)
       dup2 (stderr_fd, STDERR_FILENO);
       close (stderr_fd);
     }
+#endif
 }
 
 static void