diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-13 09:18:49 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-12-13 09:18:49 +0000 |
commit | 8a0cbd49fadf62150ef710ba42e03c65ee93d199 (patch) | |
tree | 71540342a438455b5055b00be7ab7a6e9874ec83 /include/sys/wait.h | |
parent | 8d7e9880f0d98b9321fcb9c8ee181f1bcc735eed (diff) |
Sync w/ glibc
Diffstat (limited to 'include/sys/wait.h')
-rw-r--r-- | include/sys/wait.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/sys/wait.h b/include/sys/wait.h index ec53808db..81a54fc3d 100644 --- a/include/sys/wait.h +++ b/include/sys/wait.h @@ -1,4 +1,5 @@ -/* Copyright (C) 1991-1994,1996-2001,2003,2004 Free Software Foundation, Inc. +/* Copyright (C) 1991-1994,1996-2001,2003,2004,2005 + Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -42,11 +43,11 @@ __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)) +# define __WAIT_INT(status) (*(__const int *) &(status)) # endif /* This is the type of the argument to `wait'. The funky union @@ -84,7 +85,7 @@ typedef union # define WIFEXITED(status) __WIFEXITED(__WAIT_INT(status)) # define WIFSIGNALED(status) __WIFSIGNALED(__WAIT_INT(status)) # define WIFSTOPPED(status) __WIFSTOPPED(__WAIT_INT(status)) -# if 0 /* def __WIFCONTINUED */ +# if 0 /*def __WIFCONTINUED*/ # define WIFCONTINUED(status) __WIFCONTINUED(__WAIT_INT(status)) # endif #endif /* <stdlib.h> not included. */ |