From: Roland McGrath Date: Fri, 2 Sep 2016 23:57:59 +0000 (-0700) Subject: Fix generic wait3 after union wait_status removal. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d289049cf550b975487f94dfbd7af9d5a50b2233;p=thirdparty%2Fglibc.git Fix generic wait3 after union wait_status removal. * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's not any more. (cherry picked from commit 9a3d16ac152447567bfc822497c564a0630c79fe) --- diff --git a/ChangeLog b/ChangeLog index 01272446091..2738295ab10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-09-02 Roland McGrath + + * sysdeps/posix/wait3.c: Don't treat STAT_LOC as a union, since it's + not any more. + 2016-09-02 Roland McGrath * sysdeps/nacl/clock.c (clock): nacl_abi_clock_t -> nacl_irt_clock_t diff --git a/sysdeps/posix/wait3.c b/sysdeps/posix/wait3.c index cf43d973a7b..73722d2be65 100644 --- a/sysdeps/posix/wait3.c +++ b/sysdeps/posix/wait3.c @@ -33,7 +33,7 @@ __wait3 (int *stat_loc, int options, struct rusage *usage) __set_errno (ENOSYS); return (pid_t) -1; } - return __waitpid (WAIT_ANY, stat_loc.__iptr, options); + return __waitpid (WAIT_ANY, stat_loc, options); } weak_alias (__wait3, wait3)