diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-14 23:40:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-14 23:40:51 +0000 |
commit | b8935796ecd4c6e5f704c5eb798ef954803cb1f7 (patch) | |
tree | fca14cedac235cdac52c398d1656e19eaac28153 /ext/socket/raddrinfo.c | |
parent | a85fb45c4ce3c2dd3937041a09eae8e96a3c2192 (diff) | |
download | ruby-b8935796ecd4c6e5f704c5eb798ef954803cb1f7.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index 827d89e7f2..7aaa83128e 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) |