summaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
authorChristian Boos <cboos@edgewall.org>2014-12-27 10:55:01 +0200
committerEli Zaretskii <eliz@gnu.org>2014-12-27 10:55:01 +0200
commit1fae20a2b7894ab24bb2a17e48178e70c4cf0db9 (patch)
tree6add7783626ec54832a2dd5eb83f58e2b5181eab /job.c
parent292da6f6867b75a5af7ddbb639a1feae022f438f (diff)
downloadgunmake-1fae20a2b7894ab24bb2a17e48178e70c4cf0db9.tar.gz
Fix $(shell) on hosts with 64-bit pid_t.
* function.c: Use pid_t for shell_function_pid. * job.c: Likewise. Copyright-paperwork-exempt: yes
Diffstat (limited to 'job.c')
-rw-r--r--job.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/job.c b/job.c
index 3baa5c7..3b02446 100644
--- a/job.c
+++ b/job.c
@@ -563,7 +563,8 @@ child_handler (int sig UNUSED)
*/
}
-extern int shell_function_pid, shell_function_completed;
+extern pid_t shell_function_pid;
+extern int shell_function_completed;
/* Reap all dead children, storing the returned status and the new command
state ('cs_finished') in the 'file' member of the 'struct child' for the