summaryrefslogtreecommitdiff
path: root/lib/libc/gen/waitpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/waitpid.c')
-rw-r--r--lib/libc/gen/waitpid.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/libc/gen/waitpid.c b/lib/libc/gen/waitpid.c
index 350157a9c393e..fbdf16b90a8dc 100644
--- a/lib/libc/gen/waitpid.c
+++ b/lib/libc/gen/waitpid.c
@@ -37,24 +37,18 @@
static char sccsid[] = "@(#)waitpid.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
+#include "namespace.h"
#include <sys/types.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <sys/resource.h>
+#include "un-namespace.h"
pid_t
-#if __STDC__
__waitpid(pid_t pid, int *istat, int options)
-#else
-__waitpid(pid, istat, options)
- pid_t pid;
- int *istat;
- int options;
-#endif
{
- return (wait4(pid, istat, options, (struct rusage *)0));
+ return (_wait4(pid, istat, options, (struct rusage *)0));
}
-#ifndef _THREAD_SAFE
__weak_reference(__waitpid, waitpid);
-#endif
+__weak_reference(__waitpid, _waitpid);