[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:
parent
ec9364e500
commit
c7c8e4c96e
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user