$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 #include +#ifndef MAXPID +#define MAXPID 30000 +#endif + #include #include #include @@ -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)