diff options
-rw-r--r-- | ext/etc/etc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c index 6e2374ee8c..0b3e5ffd5e 100644 --- a/ext/etc/etc.c +++ b/ext/etc/etc.c @@ -68,11 +68,12 @@ void rb_deprecate_constant(VALUE mod, const char *name); #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 HAVE_RUBY_ATOMIC_H |