From c7c8e4c96e1ccba86e8ff3232df76144084516b3 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Tue, 30 May 2023 14:20:11 +0200 Subject: [PATCH] [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 --- ext/io/nonblock/nonblock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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