summaryrefslogtreecommitdiff
path: root/ext/io/nonblock/nonblock.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2023-05-30 14:20:11 +0200
committergit <svn-admin@ruby-lang.org>2023-05-30 12:39:25 +0000
commitc7c8e4c96e1ccba86e8ff3232df76144084516b3 (patch)
tree3493ced8a714d74c27e91c95127ecc2a0d95ccf8 /ext/io/nonblock/nonblock.c
parentec9364e50077e88a222c24306209be0d776e27f3 (diff)
[ruby/io-nonblock] Use the correct pattern for the fallback of rb_io_descriptor()
* See https://github.com/ruby/io-console/pull/43/commits/d1d9aef45ceb14365fdf0ebee3e5ea06f27da682 https://github.com/ruby/io-nonblock/commit/dadb42422b
Diffstat (limited to 'ext/io/nonblock/nonblock.c')
-rw-r--r--ext/io/nonblock/nonblock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/io/nonblock/nonblock.c b/ext/io/nonblock/nonblock.c
index 048c3aa63b..4c729a760c 100644
--- a/ext/io/nonblock/nonblock.c
+++ b/ext/io/nonblock/nonblock.c
@@ -19,12 +19,13 @@
#ifndef HAVE_RB_IO_DESCRIPTOR
static int
-rb_io_descriptor(VALUE io)
+io_descriptor_fallback(VALUE io)
{
rb_io_t *fptr;
GetOpenFile(io, fptr);
return fptr->fd;
}
+#define rb_io_descriptor io_descriptor_fallback
#endif
#ifdef F_GETFL