summaryrefslogtreecommitdiff
path: root/x11-wm/metacity/files/patch-src_core_main.c
blob: a88ecf2af5275922f9f4b819b928ebca8a04e60b (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
--- src/core/main.c.orig	2009-09-08 16:55:35.000000000 -0400
+++ src/core/main.c	2009-10-02 23:36:53.000000000 -0400
@@ -58,7 +58,11 @@
 
 #include <stdlib.h>
 #include <sys/types.h>
+#ifdef __linux__
 #include <wait.h>
+#else
+#include <sys/wait.h>
+#endif
 #include <stdio.h>
 #include <string.h>
 #include <signal.h>
@@ -378,6 +382,9 @@ sigterm_handler (int signum)
 }
 
 static guint sigchld_signal_id = 0;
+#ifndef CLD_EXITED
+#define CLD_EXITED 1
+#endif
 
 static void
 sigchld_handler (int signum, siginfo_t *info, void *context)