[HAVE_UNION_WAIT]: Include sys/wait.h.
authorRoland McGrath <roland@redhat.com>
Sun, 26 Nov 1995 01:42:27 +0000 (01:42 +0000)
committerRoland McGrath <roland@redhat.com>
Sun, 26 Nov 1995 01:42:27 +0000 (01:42 +0000)
(start_job_command): Pass new arg to `message'; fix inverted test in that
call.

job.c

diff --git a/job.c b/job.c
index f97ec7f03b7cdf8a023fff70a1724f6caeac8aec..5173dfbd43efb807e91b092dfa51154a36bfa9a9 100644 (file)
--- 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