* include/cygwin/signal.h: Add __extension__ to various anonymous unions and

structs.  (thanks to V.Haisman)
This commit is contained in:
Christopher Faylor 2006-11-27 16:43:34 +00:00
parent e2edec23e5
commit f64b151f59
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2006-11-27 Christopher Faylor <cgf@timesys.com>
* include/cygwin/signal.h: Add __extension__ to various anonymous
unions and structs. (thanks to V.Haisman)
2006-11-27 Corinna Vinschen <corinna@vinschen.de>
* cyglsa.h: New header file.

View File

@ -81,7 +81,7 @@ struct _sigcommune
void *_si_read_handle;
void *_si_write_handle;
void *_si_process_handle;
union
__extension__ union
{
int _si_fd;
void *_si_pipe_fhandler;
@ -97,11 +97,11 @@ typedef struct
uid_t si_uid; /* sender's uid */
int si_errno; /* errno associated with signal */
union
__extension__ union
{
__uint32_t __pad[32]; /* plan for future growth */
struct _sigcommune _si_commune; /* cygwin ipc */
union
__extension__ union
{
/* timers */
struct
@ -120,7 +120,7 @@ typedef struct
};
/* SIGCHLD */
struct
__extension__ struct
{
int si_status; /* exit code */
clock_t si_utime; /* user time */
@ -194,7 +194,7 @@ typedef void (*_sig_func_ptr)(int);
struct sigaction
{
union
__extension__ union
{
_sig_func_ptr sa_handler; /* SIG_DFL, SIG_IGN, or pointer to a function */
void (*sa_sigaction) ( int, siginfo_t *, void * );