summaryrefslogtreecommitdiff
path: root/x11/gdm/files/patch-daemon_main.c
blob: ddbebb2f881a1a363960fe91a7c263f3b2149e78 (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
--- daemon/main.c.orig	2023-03-20 15:42:37 UTC
+++ daemon/main.c
@@ -281,6 +281,7 @@ is_debug_set (void)
         return debug;
 }
 
+#ifdef HAVE_SIGWAITINFO
 /* SIGUSR1 is used by the X server to tell us that we're ready, so
  * block it. We'll unblock it in the worker thread in gdm-server.c
  */
@@ -293,6 +294,7 @@ block_sigusr1 (void)
         sigaddset (&mask, SIGUSR1);
         sigprocmask (SIG_BLOCK, &mask, NULL);
 }
+#endif
 
 int
 main (int    argc,
@@ -313,7 +315,9 @@ main (int    argc,
                 { NULL }
         };
 
+#ifdef HAVE_SIGWAITINFO
         block_sigusr1 ();
+#endif
 
         bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
         textdomain (GETTEXT_PACKAGE);