summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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 827d89e7f21..7aaa83128ec 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)