openbsd-ports/x11/xview/config/patches/p-olwm-olwm_c
2010-05-28 01:13:54 +00:00

35 lines
611 B
Plaintext

--- clients/olwm/olwm.c.orig Tue Jun 29 07:11:52 1993
+++ clients/olwm/olwm.c Sun May 23 14:16:15 2010
@@ -23,6 +23,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 +626,19 @@ 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)