mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Unify __WAIT_INT definition in stdlib.h and sys/wait.h.
This fixes BZ #10159. The stdlib.h definition was out of date.
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2009-05-16 Ulrich Drepper <drepper@redhat.com>
|
2009-05-16 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
[BZ #10159]
|
||||||
|
* stdlib/stdlib.h (__WAIT_INT): Match the definition in <sys/wait.h>.
|
||||||
|
|
||||||
* nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
|
* nscd/nscd_helper.c (__nscd_cache_search): Fix exit condition in last
|
||||||
patch.
|
patch.
|
||||||
|
|
||||||
|
@ -48,9 +48,9 @@ __BEGIN_DECLS
|
|||||||
as well as POSIX.1 use of `int' for the status word. */
|
as well as POSIX.1 use of `int' for the status word. */
|
||||||
|
|
||||||
# if defined __GNUC__ && !defined __cplusplus
|
# if defined __GNUC__ && !defined __cplusplus
|
||||||
# define __WAIT_INT(status) \
|
# define __WAIT_INT(status) \
|
||||||
(__extension__ ({ union { __typeof(status) __in; int __i; } __u; \
|
(__extension__ (((union { __typeof(status) __in; int __i; }) \
|
||||||
__u.__in = (status); __u.__i; }))
|
{ .__in = (status) }).__i))
|
||||||
# else
|
# else
|
||||||
# define __WAIT_INT(status) (*(int *) &(status))
|
# define __WAIT_INT(status) (*(int *) &(status))
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user