include/netdb.h: Do not define IDN-related flags.
commit5e9a78c8a839381add6faa61e196e6dad9143163
authorThomas Claveirole <thomas.claveirole@green-communications.fr>
Tue, 2 Feb 2016 11:13:09 +0000 (2 12:13 +0100)
committerWaldemar Brodkorb <wbx@uclibc-ng.org>
Tue, 2 Feb 2016 20:31:16 +0000 (2 21:31 +0100)
tree12fc154478fe96d06fa8ed4402ecacfb04a544ca
parent003b266cbeb370a8eae91dc256197f00798c6f93
include/netdb.h: Do not define IDN-related flags.

getaddrinfo() does not implement IDN encoding, and always fail when
provided an IDN flag (e.g., AI_IDN) with EAI_BADFLAGS.  Some packages
(such as the VLC media player) check for AI_IDN before they use it;
providing an unimplemented AI_IDN in the libc makes these package
fail.  As a result they make calls to getaddrinfo() with AI_IDN that
always fail while they could have made successful calls without AI_IDN
instead.

Thus, do not define IDN flags: it is better not to compile rather than
to compile a code that always fail.

Signed-off-by: Thomas Claveirole <thomas.claveirole@green-communications.fr>
include/netdb.h