apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: cvs commit: apr/network_io/unix sockaddr.c
Date Mon, 01 Sep 2003 09:21:06 GMT
On Sun, Aug 31, 2003 at 04:28:55PM -0000, jerenkrantz@apache.org wrote:
...
>   +#ifdef SIN6_LEN
>   +    sa.sin_len = sizeof(sa);
>   +#endif
...

Is this bit needed? It causes false negatives on some BSD platforms:

configure:20070: checking whether getnameinfo resolves IPv4-mapped IPv6 addresses
configure:20131: gcc -o conftest -g -O2 -pthread -D_POSIX_THREADS  
conftest.c -lm -lresolv  1>&5
configure: In function `main':
configure:20116: structure has no member named `sin_len'
configure:20099: warning: return type of `main' is not `int'

(the sockaddr.c build also breaks on a subset of these platforms because
uint32_t is not defined but I guess that will go away once the autoconf
code is fixed)

joe

Mime
View raw message