Mercurial > libavformat.hg
changeset 5565:befe2f0f9a00 libavformat
Use the configure check from r21351 and use it to properly define struct
sockaddr (in case it's not missing) so it always works on the system that
we are defining it for, in a RFC-2553/3493-compliant way (i.e. containing
a ss_family field). which is used in udp.c. Patch by Martin Storsj
<$firstname $firstname st>.
author | rbultje |
---|---|
date | Wed, 20 Jan 2010 17:26:14 +0000 |
parents | 2db4e4b04157 |
children | 28094e9bd013 |
files | network.h |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/network.h Tue Jan 19 19:41:24 2010 +0000 +++ b/network.h Wed Jan 20 17:26:14 2010 +0000 @@ -70,7 +70,15 @@ #if !HAVE_STRUCT_SOCKADDR_STORAGE struct sockaddr_storage { - struct sockaddr_in x; +#if HAVE_STRUCT_SOCKADDR_SA_LEN + uint8_t ss_len; + uint8_t ss_family; +#else + uint16_t ss_family; +#endif + char ss_pad1[6]; + int64_t ss_align; + char ss_pad2[112]; }; #endif