Skip to content

Commit dadb424

Browse files
committed
Use the correct pattern for the fallback of rb_io_descriptor()
* See ruby/io-console@d1d9aef
1 parent caa2b94 commit dadb424

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/io/nonblock/nonblock.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@
1919

2020
#ifndef HAVE_RB_IO_DESCRIPTOR
2121
static int
22-
rb_io_descriptor(VALUE io)
22+
io_descriptor_fallback(VALUE io)
2323
{
2424
rb_io_t *fptr;
2525
GetOpenFile(io, fptr);
2626
return fptr->fd;
2727
}
28+
#define rb_io_descriptor io_descriptor_fallback
2829
#endif
2930

3031
#ifdef F_GETFL

0 commit comments

Comments
 (0)