ruby-changes:49727
From: nobu <ko1@a...>
Date: Mon, 15 Jan 2018 16:01:13 +0900 (JST)
Subject: [ruby-changes:49727] nobu:r61844 (trunk): raddrinfo.c: fix parse_numeric_port
nobu 2018-01-15 16:01:08 +0900 (Mon, 15 Jan 2018) New Revision: 61844 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61844 Log: raddrinfo.c: fix parse_numeric_port * ext/socket/raddrinfo.c (parse_numeric_port): necessary regardless of GETADDRINFO_EMU. Modified files: trunk/ext/socket/raddrinfo.c Index: ext/socket/raddrinfo.c =================================================================== --- ext/socket/raddrinfo.c (revision 61843) +++ ext/socket/raddrinfo.c (revision 61844) @@ -145,15 +145,6 @@ ruby_getaddrinfo__darwin(const char *nod https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L145 #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, https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L173 } #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) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/