File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1701,11 +1701,15 @@ 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
1706
+ #endif
1707
+
1704
1708
static void
1705
1709
io_wait_writable (rb_io_t * fptr )
1706
1710
{
1707
1711
#ifdef HAVE_RB_IO_MAYBE_WAIT
1708
- rb_io_maybe_wait_writable (errno , fptr -> self , Qnil );
1712
+ rb_io_maybe_wait_writable (errno , fptr -> self , RB_IO_TIMEOUT_DEFAULT );
1709
1713
#else
1710
1714
rb_io_wait_writable (fptr -> fd );
1711
1715
#endif
@@ -1715,7 +1719,7 @@ static void
1715
1719
io_wait_readable (rb_io_t * fptr )
1716
1720
{
1717
1721
#ifdef HAVE_RB_IO_MAYBE_WAIT
1718
- rb_io_maybe_wait_readable (errno , fptr -> self , Qnil );
1722
+ rb_io_maybe_wait_readable (errno , fptr -> self , RB_IO_TIMEOUT_DEFAULT );
1719
1723
#else
1720
1724
rb_io_wait_readable (fptr -> fd );
1721
1725
#endif
You can’t perform that action at this time.
0 commit comments