From ae8aa734083f03bfd8575ec00f9e18ad14756224 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 9 Apr 2004 13:14:32 +0000 Subject: [PATCH] Fixed missing forward declaration of struct rusage in the _KERNEL case. Removed namespace-polluting forward declaration of struct rusage in the !_KERNEL && !_BSD_VISIBLE case. Fixed some nearby style bugs. --- sys/sys/wait.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/sys/sys/wait.h b/sys/sys/wait.h index 4cfe663d218..6b8d1e5a09a 100644 --- a/sys/sys/wait.h +++ b/sys/sys/wait.h @@ -93,22 +93,21 @@ #endif /* __BSD_VISIBLE */ #ifdef _KERNEL +struct rusage; int kern_wait(struct thread *td, pid_t pid, int *status, int options, - struct rusage *rusage); - -#else + struct rusage *rup); +#else /* !_KERNEL */ #include __BEGIN_DECLS -struct rusage; /* forward declaration */ - pid_t wait(int *); pid_t waitpid(pid_t, int *, int); #if __BSD_VISIBLE +struct rusage; pid_t wait3(int *, int, struct rusage *); pid_t wait4(pid_t, int *, int, struct rusage *); #endif __END_DECLS -#endif +#endif /* _KERNEL */ #endif /* !_SYS_WAIT_H_ */