OSDN Git Service

* include/cygwin/signal.h: Add __extension__ to various anonymous unions and
authorcgf <cgf>
Mon, 27 Nov 2006 16:43:34 +0000 (16:43 +0000)
committercgf <cgf>
Mon, 27 Nov 2006 16:43:34 +0000 (16:43 +0000)
structs.  (thanks to V.Haisman)

winsup/cygwin/ChangeLog
winsup/cygwin/include/cygwin/signal.h

index 177e77c..ca7c93b 100644 (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.
index 1061a7a..7f34506 100644 (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 * );