summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'job.c')
-rw-r--r--job.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/job.c b/job.c
index f97ec7f..5173dfb 100644
--- a/job.c
+++ b/job.c
@@ -55,7 +55,7 @@ static int dos_batch_file;
#endif /* POSIX. */
#endif
-#ifdef HAVE_SYS_WAIT_H
+#if defined (HAVE_SYS_WAIT_H) || defined (HAVE_UNION_WAIT)
#include <sys/wait.h>
#endif
@@ -596,8 +596,8 @@ start_job_command (child)
can log the working directory before the command's own error messages
appear. */
- message ((just_print_flag || (!(flags & COMMANDS_SILENT) && !silent_flag))
- ? (char *) 0 : "%s", p);
+ message (0, (just_print_flag || (!(flags & COMMANDS_SILENT) && !silent_flag))
+ ? "%s" : (char *) 0, p);
/* Tell update_goal_chain that a command has been started on behalf of
this target. It is important that this happens here and not in