summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2010-07-19 07:10:53 +0000
committerPaul Smith <psmith@gnu.org>2010-07-19 07:10:53 +0000
commitfba20a776da6d4a36db21d9b21e9e937bef00ac3 (patch)
tree4cf2063962595ca40234d4832a00f7eeb7ebb321 /job.c
parentdf2fa7c5a5726b4e0a50e0eff209a3518ab19603 (diff)
downloadgunmake-fba20a776da6d4a36db21d9b21e9e937bef00ac3.tar.gz
- Many fixup patches from Savannah.
- Fix the test suite on Solaris (from Boris) - Update the manual for .ONESHELL
Diffstat (limited to 'job.c')
-rw-r--r--job.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/job.c b/job.c
index 8b4d716..de4f79e 100644
--- a/job.c
+++ b/job.c
@@ -174,11 +174,9 @@ int wait ();
#endif /* Don't have `union wait'. */
-#ifndef HAVE_UNISTD_H
+#if !defined(HAVE_UNISTD_H) && !defined(WINDOWS32)
int dup2 ();
-#if !(defined(_MSC_VER) && defined(_WIN64))
int execve ();
-#endif
void _exit ();
# ifndef VMS
int geteuid ();
@@ -194,7 +192,7 @@ static const char *
pid2str (pid_t pid)
{
static char pidstring[100];
-#if defined(WINDOWS32) && __GNUC__ > 3
+#ifdef WINDOWS32
sprintf (pidstring, "%Id", pid);
#else
sprintf (pidstring, "%lu", (unsigned long) pid);
@@ -2121,11 +2119,11 @@ exec_command (char **argv, char **envp)
break;
else
{
- char *pidstr = xstrdup (pid2str ((DWORD_PTR)hWaitPID));
+ char *pidstr = xstrdup (pid2str ((pid_t)hWaitPID));
fprintf(stderr,
_("make reaped child pid %s, still waiting for pid %s\n"),
- pidstr, pid2str ((DWORD_PTR)hPID));
+ pidstr, pid2str ((pid_t)hPID));
free (pidstr);
}
}