mirror of
https://github.com/mirror/make.git
synced 2025-02-05 17:20:15 +08:00
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
This commit is contained in:
parent
292da6f686
commit
1fae20a2b7
@ -1442,7 +1442,8 @@ fold_newlines (char *buffer, unsigned int *length, int trim_newlines)
|
||||
|
||||
|
||||
|
||||
int shell_function_pid = 0, shell_function_completed;
|
||||
pid_t shell_function_pid = 0;
|
||||
int shell_function_completed;
|
||||
|
||||
|
||||
#ifdef WINDOWS32
|
||||
|
3
job.c
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user