ports/misc/ttyrec/patches/patch-ttyrec_c

19 lines
409 B
Text

--- ttyrec.c.orig Sun Jun 11 17:52:50 2006
+++ ttyrec.c Wed Nov 9 21:31:06 2011
@@ -203,15 +203,10 @@ doinput()
void
finish()
{
-#if defined(SVR4)
- int status;
-#else /* !SVR4 */
- union wait status;
-#endif /* !SVR4 */
register int pid;
register int die = 0;
- while ((pid = wait3((int *)&status, WNOHANG, 0)) > 0)
+ while ((pid = wait3(NULL, WNOHANG, 0)) > 0)
if (pid == child)
die = 1;