diff options
author | Benoit Daloze <[email protected]> | 2023-05-30 14:20:11 +0200 |
---|---|---|
committer | git <[email protected]> | 2023-05-30 12:39:25 +0000 |
commit | c7c8e4c96e1ccba86e8ff3232df76144084516b3 (patch) | |
tree | 3493ced8a714d74c27e91c95127ecc2a0d95ccf8 /ext | |
parent | ec9364e50077e88a222c24306209be0d776e27f3 (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')
-rw-r--r-- | ext/io/nonblock/nonblock.c | 3 |
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 |