rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 391cc8bb552a6c4d616d786fd710c38fc41162cb
parent 16dd2a3cd044f84a8c4f51579b513c76b24871a8
Author: tgoodwin <tgoodwin>
Date:   Fri, 24 Jul 1998 13:28:13 +0000

sort out includes of <sys/wait.h>

Diffstat:
Mproto.h | 4----
Msystem-bsd.c | 3+++
Mwait.c | 3+++
3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/proto.h b/proto.h @@ -52,10 +52,6 @@ extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); #endif /* STDC_HEADERS */ -#if HAVE_SYS_WAIT_H -#include <sys/wait.h> -#endif - #if HAVE_UNISTD_H #include <unistd.h> #endif diff --git a/system-bsd.c b/system-bsd.c @@ -2,7 +2,10 @@ allows partial writes */ #include <errno.h> + +#if HAVE_SYS_WAIT_H #include <sys/wait.h> +#endif #include "rc.h" #include "jbwrap.h" diff --git a/wait.c b/wait.c @@ -1,7 +1,10 @@ #include "rc.h" #include <errno.h> + +#if HAVE_SYS_WAIT_H #include <sys/wait.h> +#endif bool forked = FALSE;