work around gcc bug in signal.h

Eric Blake eblake@redhat.com
Tue Apr 27 15:18:00 GMT 2010


I had already written this patch, and was in the process of testing it,
before cgf voted it down.  I'm still posting it for the record, as it
would allow us to be source-compatible with Linux while we wait for the
gcc bug to be fixed.

For that matter, even if this patch is not applied, we might still want to
consider simplifying things in siginfo_t - an anonymous union containing a
single anonymous struct containing a single anonymous union seems
wasteful, and we can prune two of those scopes whether or not we also name
the outer union.

2010-04-27  Eric Blake  <eblake@redhat.com>

	* include/cygwin/signal.h (siginfo_t, sigaction): Work around gcc
	bug with member initialization of anonymous union members.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygwin.patch36
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20100427/db58313b/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 320 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20100427/db58313b/attachment.sig>


More information about the Cygwin-patches mailing list