From 82041cfdecf74a47827a23bbdb017f7b6f043cd5 Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 22 Jul 2009 10:32:51 +0000 Subject: * 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 --- ext/socket/mkconstants.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/socket/mkconstants.rb') 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 -- cgit v1.2.3