summaryrefslogtreecommitdiff
path: root/include/netdb.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-13 23:44:54 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-17 20:35:20 +0100
commit8a992d6715c8149f7efc0553eeaf31f3e27de60c (patch)
tree51be1fa696c646844445f5685612d52c4e99c64a /include/netdb.h
parente83b4786d78b97f1657e96c0dfd13f0e9298e55f (diff)
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 <lly.dev@gmail.com> Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h3
1 files changed, 2 insertions, 1 deletions
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. */