File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,10 @@ io_get_write_io_fallback(VALUE io)
125125#define rb_io_get_write_io io_get_write_io_fallback
126126#endif
127127
128+ #ifndef DHAVE_RB_SYSERR_FAIL_STR
129+ # define rb_syserr_fail_str (e , mesg ) rb_exc_raise(rb_syserr_new_str(e, mesg))
130+ #endif
131+
128132#define sys_fail (io ) do { \
129133 int err = errno; \
130134 rb_syserr_fail_str(err, rb_io_path(io)); \
Original file line number Diff line number Diff line change 55# See https://bugs.ruby-lang.org/issues/20345
66MakeMakefile ::RbConfig ||= ::RbConfig
77
8+ have_func ( "rb_syserr_fail_str(0, Qnil)" ) or
9+ have_func ( "rb_syserr_new_str(0, Qnil)" ) or
10+ abort
11+
812have_func ( "rb_io_path" )
913have_func ( "rb_io_descriptor" )
1014have_func ( "rb_io_get_write_io" )
You can’t perform that action at this time.
0 commit comments