2004-01-28 15:58:53 -05:00
|
|
|
$OpenBSD: patch-olwm_c,v 1.1 2004/01/28 20:58:54 naddy Exp $
|
|
|
|
--- olwm.c.orig 1994-01-13 22:36:12.000000000 +0100
|
|
|
|
+++ olwm.c 2004-01-28 21:49:10.000000000 +0100
|
1999-07-17 06:55:32 -04:00
|
|
|
@@ -56,6 +56,9 @@
|
|
|
|
|
|
|
|
typedef void (*VoidFunc)();
|
|
|
|
|
|
|
|
+#ifdef __OpenBSD__
|
|
|
|
+#define MAXPID 30000
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Globals
|
2004-01-28 15:58:53 -05:00
|
|
|
@@ -182,7 +185,7 @@ static char **argVec;
|
1999-07-17 06:55:32 -04:00
|
|
|
/*
|
|
|
|
* main -- parse arguments, perform initialization, call event-loop
|
|
|
|
*/
|
|
|
|
-void
|
|
|
|
+int
|
|
|
|
main(argc, argv)
|
|
|
|
int argc;
|
|
|
|
char **argv;
|
2004-01-28 15:58:53 -05:00
|
|
|
@@ -679,7 +682,11 @@ ReapChildren()
|
1999-07-17 06:55:32 -04:00
|
|
|
#else
|
|
|
|
int oldmask;
|
|
|
|
int pid;
|
|
|
|
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
|
|
|
|
union wait status;
|
|
|
|
+#else
|
|
|
|
+ int status;
|
|
|
|
+#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (!deadChildren)
|