waitpid: Support ARM.
* lib/linux/waitpid.c (waitpid): Support ARM.
This commit is contained in:
parent
65013db594
commit
a944400112
|
@ -27,7 +27,7 @@ waitpid (pid_t pid, int *status_ptr, int options)
|
||||||
{
|
{
|
||||||
#if __i386__
|
#if __i386__
|
||||||
return _sys_call3 (SYS_waitpid, (long) pid, (long) status_ptr, (int) options);
|
return _sys_call3 (SYS_waitpid, (long) pid, (long) status_ptr, (int) options);
|
||||||
#elif __x86_64__
|
#elif __x86_64__ || __arm__
|
||||||
return _sys_call4 (SYS_wait4, (long) pid, (long) status_ptr, (int) options, 0);
|
return _sys_call4 (SYS_wait4, (long) pid, (long) status_ptr, (int) options, 0);
|
||||||
#else
|
#else
|
||||||
#error arch not supported
|
#error arch not supported
|
||||||
|
|
Loading…
Reference in a new issue