summaryrefslogtreecommitdiff
path: root/ext/socket/raddrinfo.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-14 23:40:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-14 23:40:51 +0000
commit1ab22a5672eeec31976dc2a34f8531aa00268663 (patch)
treefca14cedac235cdac52c398d1656e19eaac28153 /ext/socket/raddrinfo.c
parentefb9a0fc181e3fec11f51cae405bf261e4fe0697 (diff)
raddrinfo.c: suppress a warning
* ext/socket/raddrinfo.c (parse_numeric_port): used only when inet_pton() is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/raddrinfo.c')
-rw-r--r--ext/socket/raddrinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index 827d89e..7aaa831 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -154,6 +154,7 @@ struct getaddrinfo_arg
struct addrinfo **res;
};
+#ifdef HAVE_INET_PTON
static int
parse_numeric_port(const char *service, int *portp)
{
@@ -179,6 +180,7 @@ parse_numeric_port(const char *service, int *portp)
return 1;
}
+#endif
static void *
nogvl_getaddrinfo(void *arg)