aboutsummaryrefslogtreecommitdiffstats
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-06 10:18:44 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-06 10:18:44 +0000
commitb5470fd243b0fecc3763dff2938081411709b3d0 (patch)
treee73a83b2f8aba262d043abd5eff58ebbd17279ab /ext/socket/socket.c
parent53716bfce783666039c53da88a02c5f1a9045205 (diff)
downloadruby-b5470fd243b0fecc3763dff2938081411709b3d0.tar.gz
* ext/socket/socket.c (io_call_close, io_close, pair_yield):
unused unless socketpair exists. * ext/socket/getnameinfo.c (getnameinfo): moved conditinally used variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r--ext/socket/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 581641961f..88a827ec02 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -2428,6 +2428,7 @@ sock_initialize(VALUE sock, VALUE domain, VALUE type, VALUE protocol)
return init_sock(sock, fd);
}
+#if defined HAVE_SOCKETPAIR
static VALUE
io_call_close(VALUE io)
{
@@ -2445,6 +2446,7 @@ pair_yield(VALUE pair)
{
return rb_ensure(rb_yield, pair, io_close, rb_ary_entry(pair, 1));
}
+#endif
static VALUE
sock_s_socketpair(VALUE klass, VALUE domain, VALUE type, VALUE protocol)