summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-13 00:55:32 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-13 00:55:32 +0000
commit654e94e1c976d675ac464e7edc1c1891a4a6b780 (patch)
treeca12cb101f677a511700eec59692db852f1b3eae /ext
parentc2cc750dd7ab1b9e4ef3c742f2f8e554736e5e58 (diff)
Commit miss in previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 098fd3a8c50..f608e6e434d 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -5176,8 +5176,8 @@ addrinfo_ipv4_p(VALUE self)
static VALUE
addrinfo_ipv6_p(VALUE self)
{
- rb_addrinfo_t *rai = get_addrinfo(self);
#ifdef AF_INET6
+ rb_addrinfo_t *rai = get_addrinfo(self);
return ai_get_afamily(rai) == AF_INET6 ? Qtrue : Qfalse;
#else
return Qfalse;