blob: f293806e86271497d0dfce2866c2b1887bd114ac (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
$NetBSD: patch-ag,v 1.2 2009/12/10 20:37:36 abs Exp $
--- olwm/olwm.c.orig 1993-06-29 05:11:52.000000000 +0000
+++ olwm/olwm.c
@@ -1,4 +1,3 @@
-#ident "@(#)olwm.c 26.66 93/06/28 SMI"
/*
* (c) Copyright 1989 Sun Microsystems, Inc.
@@ -23,6 +22,10 @@
#include <sys/stat.h>
#include <sys/wait.h>
+#ifndef MAXPID
+#define MAXPID 30000
+#endif
+
#include <X11/Xos.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -622,14 +625,20 @@ handleChildSignal()
void
ReapChildren()
{
-#ifdef SYSV
+#if defined(SYSV)
pid_t pid;
int status;
#else
+#if (defined(BSD) && (BSD >= 199103))
+ pid_t pid;
+ int status;
+ int oldmask;
+#else
int oldmask;
int pid;
union wait status;
#endif
+#endif
if (!deadChildren)
return;
|