[PATCH] Xtranssock: assume that we have getaddrinfo if ipv6 is enabled

Alan Coopersmith Alan.Coopersmith at Sun.COM
Tue Aug 11 10:23:19 PDT 2009


Julien Cristau wrote:
> If IPv6 is enabled at build time, assume that the C library will have
> getaddrinfo at runtime.

That was how I originally wrote the code - the weak/mismatch case was added
by David Dawes in the XFree86 integration because he was seeing crashes on
FreeBSD when the server was built with IPv6 support but libc was not
(possibly because they were linked, statically or dynamically, with an older
 version of libc, but somehow also linked with a new version of libX11):

	http://www.mail-archive.com/devel@xfree86.org/msg04177.html

Presumably, that case is far more rare in 2009 than it was in 2003, and I
have no objections to not catering for it.   Certainly it's not something
that we'd support on Solaris/OpenSolaris - I don't know about other OS'es.

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering



More information about the xorg-devel mailing list