From 8a992d6715c8149f7efc0553eeaf31f3e27de60c Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 13 Dec 2015 23:44:54 +0100 Subject: resolv: NI_IDN unimplemented Some programs trying to use NI_IDN flag in case of it defined in netdb.h, so hide it to suppress bad values for ai_flags. Inspired by OpenWRT issue #12323 Signed-off-by: Leonid Lisovskiy Signed-off-by: Waldemar Brodkorb --- include/netdb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/netdb.h b/include/netdb.h index 7ce01c24d..a636b5f97 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -671,7 +671,8 @@ struct addrinfo # define NI_NOFQDN 4 /* Only return nodename portion. */ # define NI_NAMEREQD 8 /* Don't return numeric addresses. */ # define NI_DGRAM 16 /* Look up UDP service rather than TCP. */ -# ifdef __USE_GNU +#if 0 /* uClibc: not implemented */ +/* # ifdef __USE_GNU */ # define NI_IDN 32 /* Convert name from IDN format. */ # define NI_IDN_ALLOW_UNASSIGNED 64 /* Don't reject unassigned Unicode code points. */ -- cgit v1.2.3