diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-11-02 15:23:08 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-11-02 15:23:08 +0000 |
commit | 89e7d586f4799246340c92bcb2b4dc0bf95b5798 (patch) | |
tree | 8d73b2964ae9c45082431998a7125273328bb094 /ext/socket/extconf.rb | |
parent | 82371d77eea74e091a4e9d5317f61e738171990f (diff) |
* ext/socket/socket.c (ruby_getnameinfo__aix): AF_INET6 workaround
for AIX. a patch from Yutaka Kanemoto <kinpoco AT gmail.com>.
[ruby-dev:29744]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/extconf.rb')
-rw-r--r-- | ext/socket/extconf.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb index 7a8c153210..8a13ddba73 100644 --- a/ext/socket/extconf.rb +++ b/ext/socket/extconf.rb @@ -156,6 +156,10 @@ main() if (ai->ai_addr == NULL) goto bad; #if defined(_AIX) + if (ai->ai_family == AF_INET6 && passive) { + inet6++; + continue; + } ai->ai_addr->sa_len = ai->ai_addrlen; ai->ai_addr->sa_family = ai->ai_family; #endif |