mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
getaddrinfo.c: ai_errlist
* ext/socket/getaddrinfo.c (ai_errlist): used only if gai_strerror is missing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
813a206d56
commit
fb6c4ca168
1 changed files with 2 additions and 0 deletions
|
@ -149,6 +149,7 @@ static int get_addr __P((const char *, int, struct addrinfo **,
|
|||
struct addrinfo *, int));
|
||||
static int str_isnumber __P((const char *));
|
||||
|
||||
#ifndef HAVE_GAI_STRERROR
|
||||
static const char *const ai_errlist[] = {
|
||||
"success.",
|
||||
"address family for hostname not supported.", /* EAI_ADDRFAMILY */
|
||||
|
@ -166,6 +167,7 @@ static const char *const ai_errlist[] = {
|
|||
"resolved protocol is unknown.", /* EAI_PROTOCOL */
|
||||
"unknown error.", /* EAI_MAX */
|
||||
};
|
||||
#endif
|
||||
|
||||
#define GET_CANONNAME(ai, str) \
|
||||
if (pai->ai_flags & AI_CANONNAME) {\
|
||||
|
|
Loading…
Add table
Reference in a new issue