From 82041cfdecf74a47827a23bbdb017f7b6f043cd5 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 22 Jul 2009 10:32:51 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ ext/socket/mkconstants.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6d50be15e0..b394998cc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 22 19:32:10 2009 NAKAMURA Usaku + + * ext/socket/mkconstants.rb: define IPV6_* constants only when INET6 + is defined. + Wed Jul 22 19:23:04 2009 NAKAMURA Usaku * ext/socket/extconf.rb: ipv6 support is disabled by default on mswin. diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb index 3074a8ff8d..6df8fbeaf9 100644 --- a/ext/socket/mkconstants.rb +++ b/ext/socket/mkconstants.rb @@ -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