blob: b0c692d72f4f48a7f5bae1bdef4d4e35c15c9996 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$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
|