diff options
author | Ken Foskey <waratah@openoffice.org> | 2003-01-04 12:02:44 +0000 |
---|---|---|
committer | Ken Foskey <waratah@openoffice.org> | 2003-01-04 12:02:44 +0000 |
commit | 54bf66763d00e045165315df73c816d71c74f1ce (patch) | |
tree | 8fb013f9d5ea48384506061c116a0d91365f4090 /dmake | |
parent | a20ec3c87946057bbdc935753b7dbbb2cafe64c7 (diff) |
Implement a test around wait so it is not included when the platform does not define it
Diffstat (limited to 'dmake')
-rw-r--r-- | dmake/unix/runargv.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dmake/unix/runargv.c b/dmake/unix/runargv.c index 0418a4db6015..4766eecb26dd 100644 --- a/dmake/unix/runargv.c +++ b/dmake/unix/runargv.c @@ -1,4 +1,4 @@ -/* RCS $Id: runargv.c,v 1.5 2002-10-11 13:42:48 waratah Exp $ +/* RCS $Id: runargv.c,v 1.6 2003-01-04 13:02:44 waratah Exp $ -- -- SYNOPSIS -- Invoke a sub process. @@ -24,11 +24,13 @@ */ #include <signal.h> -#include <wait.h> +#ifdef HAVE_WAIT_H +# include <wait.h> +#endif #include "extern.h" -/* temporarily comment out spwan code as it does not actually work yet */ +/* temporarily comment out spawn code as it does not actually work yet */ #undef HAVE_SPAWN_H #if HAVE_SPAWN_H # include <spawn.h> |