summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-12 23:34:39 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-12 23:34:39 -0400
commit20052b9815f1009699fc6543d746010c67e8b962 (patch)
tree34a2faf9cae395813d83233500682d4ba4af6f7a /include
parent7db6a871ca14b5a8e303e8b1819955970c79d034 (diff)
downloadmusl-20052b9815f1009699fc6543d746010c67e8b962.tar.gz
musl-20052b9815f1009699fc6543d746010c67e8b962.tar.bz2
musl-20052b9815f1009699fc6543d746010c67e8b962.tar.xz
musl-20052b9815f1009699fc6543d746010c67e8b962.zip
namespace cleanup - NI_* is NOT reserved by netdb.h
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/netdb.h b/include/netdb.h
index 6e181b6e..db5eccf4 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -44,9 +44,6 @@ struct addrinfo
#define NI_DGRAM 0x10
/*#define NI_NUMERICSCOPE */
-#define NI_MAXHOST 255
-#define NI_MAXSERV 32
-
#define EAI_BADFLAGS -1
#define EAI_NONAME -2
#define EAI_AGAIN -3
@@ -146,6 +143,8 @@ int getservbyname_r(const char *, const char *, struct servent *, char *, size_t
#define EAI_ALLDONE -103
#define EAI_INTR -104
#define EAI_IDN_ENCODE -105
+#define NI_MAXHOST 255
+#define NI_MAXSERV 32
#endif