From f64b151f5905f5a971351cb23c19e7aad9036c0f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 27 Nov 2006 16:43:34 +0000 Subject: [PATCH] * include/cygwin/signal.h: Add __extension__ to various anonymous unions and structs. (thanks to V.Haisman) --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/include/cygwin/signal.h | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 177e77c36..ca7c93b21 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2006-11-27 Christopher Faylor + + * include/cygwin/signal.h: Add __extension__ to various anonymous + unions and structs. (thanks to V.Haisman) + 2006-11-27 Corinna Vinschen * cyglsa.h: New header file. diff --git a/winsup/cygwin/include/cygwin/signal.h b/winsup/cygwin/include/cygwin/signal.h index 1061a7ab1..7f34506d7 100644 --- a/winsup/cygwin/include/cygwin/signal.h +++ b/winsup/cygwin/include/cygwin/signal.h @@ -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 * );