[ruby/io-nonblock] Use the correct pattern for the fallback of rb_io_descriptor()

* See d1d9aef45c

https://github.com/ruby/io-nonblock/commit/dadb42422b
This commit is contained in:
Benoit Daloze 2023-05-30 14:20:11 +02:00 committed by git
parent ec9364e500
commit c7c8e4c96e

View File

@ -19,12 +19,13 @@
#ifndef HAVE_RB_IO_DESCRIPTOR #ifndef HAVE_RB_IO_DESCRIPTOR
static int static int
rb_io_descriptor(VALUE io) io_descriptor_fallback(VALUE io)
{ {
rb_io_t *fptr; rb_io_t *fptr;
GetOpenFile(io, fptr); GetOpenFile(io, fptr);
return fptr->fd; return fptr->fd;
} }
#define rb_io_descriptor io_descriptor_fallback
#endif #endif
#ifdef F_GETFL #ifdef F_GETFL