[FFmpeg-devel] [PATCH/RFC] Prefer getaddrinfo over gethostbyname

Ronald S. Bultje rsbultje
Tue Jan 12 20:20:41 CET 2010


Hi,

On Tue, Jan 12, 2010 at 2:17 PM, Dave Yeo <daveryeo at telus.net> wrote:
> FYI sa_len is implemented like this here (the TCPV40HDRS are depreciated) on
> OS/2
>
> struct sockaddr {
> #ifdef TCPV40HDRS
> ? ? ? ?u_short sa_family; ? ? ? ? ? ? ?/* address family */
> ? ? ? ?char ? ?sa_data[14]; ? ? ? ? ? ?/* up to 14 bytes of direct address
> */
> #else
> ? ? ? ?u_char ?sa_len; ? ? ? ? ? ? ? ? /* total length */
> ? ? ? ?u_char ?sa_family; ? ? ? ? ? ? ?/* address family */
> ? ? ? ?char ? ?sa_data[14]; ? ? ? ? ? ?/* actually longer; address value */
> #endif
> };

could you implement a configure check and the above, which works?

Thanks!
Ronald



More information about the ffmpeg-devel mailing list