92b1db2025
- Mark as LICENSE sun-openlook-license - Bump pkgrevision
42 lines
760 B
Text
42 lines
760 B
Text
$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;
|