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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c
index a4a2a37..2c4e77b 100644
--- a/ext/socket/option.c
+++ b/ext/socket/option.c
@@ -642,7 +642,7 @@ inspect_timeval_as_interval(int level, int optname, VALUE data, VALUE ret)
* it is not distinguishable by the size.
*/
-#ifndef HAVE_INET_NTOP
+#if !defined HAVE_INET_NTOP && ! defined _WIN32
static const char *
inet_ntop(int af, const void *addr, char *numaddr, size_t numaddr_len)
{
@@ -658,7 +658,7 @@ inet_ntop(int af, const void *addr, char *numaddr, size_t numaddr_len)
#endif
return numaddr;
}
-#elif defined __MINGW64__
+#elif defined _WIN32
# define inet_ntop(f,a,n,l) rb_w32_inet_ntop(f,a,n,l)
#endif