mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
[ruby/io-nonblock] Use the correct pattern for the fallback of rb_io_descriptor()
* Seed1d9aef45c
dadb42422b
This commit is contained in:
parent
ec9364e500
commit
c7c8e4c96e
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue