summaryrefslogtreecommitdiffstats
path: root/ext/socket
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
commitef51814080fb7fe2c32481c5c3239b2d58b601a8 (patch)
treedd37db739f225f1da5c6c15532e898484adf0218 /ext/socket
parent957db827ebf134e590e4cd9a60ec5fab41a29259 (diff)
downloadruby-ef51814080fb7fe2c32481c5c3239b2d58b601a8.tar.gz
ruby-ef51814080fb7fe2c32481c5c3239b2d58b601a8.tar.xz
ruby-ef51814080fb7fe2c32481c5c3239b2d58b601a8.zip
* ext/socket/mkconstants.rb: define IPV6_* constants only when INET6
is defined. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-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 3074a8ff8..6df8fbeaf 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