summaryrefslogtreecommitdiffstats
path: root/ext/socket
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-14 10:04:35 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-14 10:04:35 +0000
commit24788ea7f6f3ec9d911ac1fce3411a2629f57934 (patch)
tree762f5da440a2026f5dd80d752604b00c1920c9c9 /ext/socket
parentb6d2004e9d573a4d039b0311e1ddad8d66983f7e (diff)
downloadruby-24788ea7f6f3ec9d911ac1fce3411a2629f57934.tar.gz
ruby-24788ea7f6f3ec9d911ac1fce3411a2629f57934.tar.xz
ruby-24788ea7f6f3ec9d911ac1fce3411a2629f57934.zip
* ext/socket/socket.c (Init_socket): IPv6 is not supported although
AF_INET6 is defined on MinGW. * lib/ipaddr.rb (AF_INET6): workaround in the environment which does not support IPv6. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index e84260306..8a1825d79 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -2511,10 +2511,10 @@ Init_socket()
sock_define_const("AF_UNSPEC", AF_UNSPEC);
sock_define_const("PF_UNSPEC", PF_UNSPEC);
#endif
-#ifdef AF_INET6
+#ifdef INET6
sock_define_const("AF_INET6", AF_INET6);
#endif
-#ifdef PF_INET6
+#ifdef INET6
sock_define_const("PF_INET6", PF_INET6);
#endif