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 | 50884a94f490a63ea63610a696a9797eb7278973 (patch) | |
| tree | 8d73b2964ae9c45082431998a7125273328bb094 /ext/socket/extconf.rb | |
| parent | 6e6d8f11748424968107efb1e02ab0dad320de43 (diff) | |
| download | ruby-50884a94f490a63ea63610a696a9797eb7278973.tar.gz ruby-50884a94f490a63ea63610a696a9797eb7278973.tar.xz ruby-50884a94f490a63ea63610a696a9797eb7278973.zip | |
* 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: http://svn.ruby-lang.org/repos/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 7a8c15321..8a13ddba7 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 |
