blob: 0cafe811338007c96749468bdfb740fd28031505 (
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
|
$NetBSD: patch-ag,v 1.1 2001/12/28 14:58:02 tron Exp $
--- olwm/olwm.c.orig Tue Jun 29 07:11:52 1993
+++ olwm/olwm.c Fri Dec 28 15:55:43 2001
@@ -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,13 +625,19 @@
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)
|