1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/socket/mkconstants.rb: define IPV6_* constants only when INET6

is defined.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2009-07-22 10:32:51 +00:00
parent 52d3e529ab
commit 82041cfdec
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Wed Jul 22 19:32:10 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/mkconstants.rb: define IPV6_* constants only when INET6
is defined.
Wed Jul 22 19:23:04 2009 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/socket/extconf.rb: ipv6 support is disabled by default on mswin.

View file

@ -56,7 +56,7 @@ def each_const
make_value = "INT2NUM"
end
guard = nil
if /\A(AF_INET6|PF_INET6)\z/ =~ name
if /\A(AF_INET6|PF_INET6|IPV6_.*)\z/ =~ name
# IPv6 is not supported although AF_INET6 is defined on bcc32/mingw
guard = "defined(INET6)"
end