From a64039b084ae3faca3336b7d95f2e40c497d20e1 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 16 May 2009 11:39:39 -0700 Subject: Unify __WAIT_INT definition in stdlib.h and sys/wait.h. This fixes BZ #10159. The stdlib.h definition was out of date. --- stdlib/stdlib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stdlib/stdlib.h') diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index 77bb860..5b084ef 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -48,9 +48,9 @@ __BEGIN_DECLS as well as POSIX.1 use of `int' for the status word. */ # if defined __GNUC__ && !defined __cplusplus -# define __WAIT_INT(status) \ - (__extension__ ({ union { __typeof(status) __in; int __i; } __u; \ - __u.__in = (status); __u.__i; })) +# define __WAIT_INT(status) \ + (__extension__ (((union { __typeof(status) __in; int __i; }) \ + { .__in = (status) }).__i)) # else # define __WAIT_INT(status) (*(int *) &(status)) # endif -- cgit v1.1