summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2005-06-10 20:16:28 +0000
committerPaul Smith <psmith@gnu.org>2005-06-10 20:16:28 +0000
commit974d14ac4fc8dc736a4e2c9876d85d3c295b1196 (patch)
treea4cf33aba8acfeab34aca3f9cb2b9a2873a4886b /job.c
parentdd30b0552ffc4276e1ada07100b7eb4e231805fa (diff)
downloadgunmake-974d14ac4fc8dc736a4e2c9876d85d3c295b1196.tar.gz
Fixes for VMS from Hartmut Becker.
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 8349445..b805eda 100644
--- a/job.c
+++ b/job.c
@@ -98,6 +98,7 @@ static int amiga_batch_file;
# endif
# include <starlet.h>
# include <lib$routines.h>
+static void vmsWaitForChildren PARAMS ((int *));
#endif
#ifdef WINDOWS32
@@ -535,7 +536,6 @@ reap_children (int block, int err)
if (any_local)
{
#ifdef VMS
- static void vmsWaitForChildren PARAMS ((int *));
vmsWaitForChildren (&status);
pid = c->pid;
#else
@@ -1905,7 +1905,7 @@ child_execute_job (int stdin_fd, int stdout_fd, char **argv, char **envp)
return pid;
}
-#elif !defined (_AMIGA) && !defined (__MSDOS__)
+#elif !defined (_AMIGA) && !defined (__MSDOS__) && !defined (VMS)
/* UNIX:
Replace the current process with one executing the command in ARGV.
@@ -1926,7 +1926,7 @@ child_execute_job (int stdin_fd, int stdout_fd, char **argv, char **envp)
/* Run the command. */
exec_command (argv, envp);
}
-#endif /* !AMIGA && !__MSDOS__ */
+#endif /* !AMIGA && !__MSDOS__ && !VMS */
#endif /* !WINDOWS32 */
#ifndef _AMIGA