summaryrefslogtreecommitdiff
path: root/ext/socket/option.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/option.c')
-rw-r--r--ext/socket/option.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c
index 1f334bbca0..4cef1c81c4 100644
--- a/ext/socket/option.c
+++ b/ext/socket/option.c
@@ -452,6 +452,8 @@ inet_ntop(int af, const void *addr, char *numaddr, size_t numaddr_len)
#endif
return numaddr;
}
+#elif !defined HAVE_ARPA_INET_H
+extern char *inet_ntop(int af, const void *addr, char *numaddr, size_t numaddr_len);
#endif
/* Although the buffer size needed depends on the prefixes, "%u" may generate "4294967295". */