File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1701,15 +1701,16 @@ no_exception_p(VALUE opts)
1701
1701
return 0 ;
1702
1702
}
1703
1703
1704
- #ifndef RB_IO_TIMEOUT_DEFAULT
1705
- #define RB_IO_TIMEOUT_DEFAULT Qnil
1704
+ // Provided by Ruby 3.2.0 and later in order to support the default IO#timeout.
1705
+ #ifndef RUBY_IO_TIMEOUT_DEFAULT
1706
+ #define RUBY_IO_TIMEOUT_DEFAULT Qnil
1706
1707
#endif
1707
1708
1708
1709
static void
1709
1710
io_wait_writable (rb_io_t * fptr )
1710
1711
{
1711
1712
#ifdef HAVE_RB_IO_MAYBE_WAIT
1712
- rb_io_maybe_wait_writable (errno , fptr -> self , RB_IO_TIMEOUT_DEFAULT );
1713
+ rb_io_maybe_wait_writable (errno , fptr -> self , RUBY_IO_TIMEOUT_DEFAULT );
1713
1714
#else
1714
1715
rb_io_wait_writable (fptr -> fd );
1715
1716
#endif
@@ -1719,7 +1720,7 @@ static void
1719
1720
io_wait_readable (rb_io_t * fptr )
1720
1721
{
1721
1722
#ifdef HAVE_RB_IO_MAYBE_WAIT
1722
- rb_io_maybe_wait_readable (errno , fptr -> self , RB_IO_TIMEOUT_DEFAULT );
1723
+ rb_io_maybe_wait_readable (errno , fptr -> self , RUBY_IO_TIMEOUT_DEFAULT );
1723
1724
#else
1724
1725
rb_io_wait_readable (fptr -> fd );
1725
1726
#endif
You can’t perform that action at this time.
0 commit comments