summaryrefslogtreecommitdiff
path: root/ext/socket/mkconstants.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 10:32:51 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 10:32:51 +0000
commit82041cfdecf74a47827a23bbdb017f7b6f043cd5 (patch)
treedd37db739f225f1da5c6c15532e898484adf0218 /ext/socket/mkconstants.rb
parent52d3e529ab9006f1493eb36d5e1cf4e97cfc754e (diff)
* 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
Diffstat (limited to 'ext/socket/mkconstants.rb')
-rw-r--r--ext/socket/mkconstants.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index 3074a8f..6df8fbe 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