зеркало из https://github.com/github/ruby.git
raddrinfo.c: fix parse_numeric_port
* ext/socket/raddrinfo.c (parse_numeric_port): necessary regardless of GETADDRINFO_EMU. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8699a7a006
Коммит
995717e15c
|
@ -145,15 +145,6 @@ ruby_getaddrinfo__darwin(const char *nodename, const char *servname,
|
|||
#define getaddrinfo(node,serv,hints,res) ruby_getaddrinfo__darwin((node),(serv),(hints),(res))
|
||||
#endif
|
||||
|
||||
#ifndef GETADDRINFO_EMU
|
||||
struct getaddrinfo_arg
|
||||
{
|
||||
const char *node;
|
||||
const char *service;
|
||||
const struct addrinfo *hints;
|
||||
struct addrinfo **res;
|
||||
};
|
||||
|
||||
#ifdef HAVE_INET_PTON
|
||||
static int
|
||||
parse_numeric_port(const char *service, int *portp)
|
||||
|
@ -182,6 +173,15 @@ parse_numeric_port(const char *service, int *portp)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef GETADDRINFO_EMU
|
||||
struct getaddrinfo_arg
|
||||
{
|
||||
const char *node;
|
||||
const char *service;
|
||||
const struct addrinfo *hints;
|
||||
struct addrinfo **res;
|
||||
};
|
||||
|
||||
static void *
|
||||
nogvl_getaddrinfo(void *arg)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче