From c59d8f60bfd4f4162d87e432679b57bc25da3b0a Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 17 Jun 2014 10:20:24 +1000 Subject: [PATCH] add EAI_OVERFLOW to lwres (cherry picked from commit e177c7b81414417858b5d4816946b1b9d72fbf1c) --- lib/lwres/gai_strerror.c | 3 ++- lib/lwres/include/lwres/netdb.h.in | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/lwres/gai_strerror.c b/lib/lwres/gai_strerror.c index 70b35b0d80..8eef806808 100644 --- a/lib/lwres/gai_strerror.c +++ b/lib/lwres/gai_strerror.c @@ -63,7 +63,8 @@ static const char *gai_messages[] = { "ai_socktype not supported", "system error returned in errno", "bad hints", - "bad protocol" + "bad protocol", + "overflow" }; /*% Returns an error message corresponding to an error code returned by getaddrinfo() */ diff --git a/lib/lwres/include/lwres/netdb.h.in b/lib/lwres/include/lwres/netdb.h.in index 0844384e52..d961351096 100644 --- a/lib/lwres/include/lwres/netdb.h.in +++ b/lib/lwres/include/lwres/netdb.h.in @@ -88,6 +88,7 @@ struct addrinfo { #undef EAI_SYSTEM #undef EAI_BADHINTS #undef EAI_PROTOCOL +#undef EAI_OVERFLOW #undef EAI_MAX #define EAI_ADDRFAMILY 1 /* address family for hostname not supported */ @@ -103,7 +104,8 @@ struct addrinfo { #define EAI_SYSTEM 11 /* system error returned in errno */ #define EAI_BADHINTS 12 #define EAI_PROTOCOL 13 -#define EAI_MAX 14 +#define EAI_OVERFLOW 14 +#define EAI_MAX 15 /* * Flag values for getaddrinfo()