diff options
| author | tgoodwin <tgoodwin> | 1998-07-24 16:00:13 +0000 |
|---|---|---|
| committer | Toby Goodwin <toby@paccrat.org> | 2015-05-16 21:23:10 +0100 |
| commit | cb2f9b483a09d9b2f122272a1a30857bdb4ec19e (patch) | |
| tree | 66212ca5088bda8ef38384c4f24ad982a060376a | |
| parent | 85132307560fb07e38dde99919d2b278c9d15c3b (diff) | |
get the <sys/wait.h> stuff right this time
| -rw-r--r-- | proto.h | 3 | ||||
| -rw-r--r-- | system-bsd.c | 4 | ||||
| -rw-r--r-- | wait.c | 4 |
3 files changed, 3 insertions, 8 deletions
@@ -56,6 +56,9 @@ extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); #include <unistd.h> #endif +#if HAVE_SYS_WAIT_H +#include <sys/wait.h> +#endif /* Fake the POSIX wait() macros if we don't have them. */ #ifndef WIFEXITED diff --git a/system-bsd.c b/system-bsd.c index 331079f..c098d86 100644 --- a/system-bsd.c +++ b/system-bsd.c @@ -3,10 +3,6 @@ allows partial writes */ #include <errno.h> -#if HAVE_SYS_WAIT_H -#include <sys/wait.h> -#endif - #include "rc.h" #include "jbwrap.h" @@ -2,10 +2,6 @@ #include <errno.h> -#if HAVE_SYS_WAIT_H -#include <sys/wait.h> -#endif - bool forked = FALSE; typedef struct Pid Pid; |