getaddrinfo() AI_IDN feature test

Mike Frysinger vapier@gentoo.org
Sun Mar 8 13:29:00 GMT 2015


On 01 Jan 2015 08:03, Martin Lambers wrote:
> I recently changed two programs to use the AI_IDN flag for
> getaddrinfo() instead of using libidn.
> 
> Users reported runtime failure (EAI_BADFLAGS) on systems where glibc
> was build without libidn support.
> 
> On these systems, AI_IDN was defined nevertheless -- is this intended
> behaviour? If so, then #ifdef AI_IDN is not enough; what is the
> recommended way to check if AI_IDN actually works?

what version of glibc exactly ?  my reading of the git history is that since 
AI_IDN was added to the header for 2.4, glibc has unconditionally supported it.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-help/attachments/20150308/f7287b5a/attachment.sig>


More information about the Libc-help mailing list