[PATCH] bits/socket.h: Define struct sockaddr with may_alias attribute [BZ #19622]

Florian Weimer fweimer@redhat.com
Fri Feb 12 13:15:00 GMT 2016


It is quite common to use struct sockaddr * as an opaque, void *-like
type for socket addresses.  The POSIX API encourages to some degree.
Marek Polacek suggested to add the may_alias attribute to the definition
of struct sockaddr.

Support for that was introduced in GCC 4.0, so I added a conditional to
cdefs.h.

Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bits-socket.h-Define-struct-sockaddr-with-may_alias-.patch
Type: text/x-patch
Size: 2120 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160212/26382c0c/attachment.bin>


More information about the Libc-alpha mailing list