diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-06 10:18:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-06 10:18:44 +0000 |
commit | 3549834b72aef6c679d205c8b4adbe3753afe0c4 (patch) | |
tree | e73a83b2f8aba262d043abd5eff58ebbd17279ab /ext/socket/socket.c | |
parent | 3b79b302c802586757d3a2257ffbb8a3cf7b324c (diff) | |
download | ruby-3549834b72aef6c679d205c8b4adbe3753afe0c4.tar.gz ruby-3549834b72aef6c679d205c8b4adbe3753afe0c4.tar.xz ruby-3549834b72aef6c679d205c8b4adbe3753afe0c4.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@21356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 581641961..88a827ec0 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) |