$NetBSD: patch-ab,v 1.2 2000/10/26 11:17:35 abs Exp $ --- common/uproc.c.orig Mon Mar 29 03:27:05 1999 +++ common/uproc.c @@ -38,7 +38,9 @@ #if defined(WNOHANG) && !defined(SYSV) && !defined(SVR4) int pid; #endif +#ifndef errno extern int errno; +#endif int old_errno = errno; /* @@ -51,7 +53,7 @@ do { errno = 0; - pid = wait3(&st, WNOHANG, 0); + pid = wait3((int *) &st, WNOHANG, 0); } while (pid <= 0 && errno == EINTR); #else