Skip to content

Commit

Permalink
Prefer checking for rb_io_timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 13, 2024
1 parent 455c1d6 commit a9eec79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ext/openssl/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

have_func("rb_io_descriptor")
have_func("rb_io_maybe_wait(0, Qnil, Qnil, Qnil)", "ruby/io.h") # Ruby 3.1
have_var("rb_eIOTimeoutError", "ruby/io.h")
have_func("rb_io_timeout", "ruby/io.h")

Logging::message "=== Checking for system dependent stuff... ===\n"
have_library("nsl", "t_open")
Expand Down
2 changes: 1 addition & 1 deletion ext/openssl/ossl_ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,7 @@ no_exception_p(VALUE opts)
#define RUBY_IO_TIMEOUT_DEFAULT Qnil
#endif

#ifdef HAVE_RB_EIOTIMEOUTERROR
#ifdef HAVE_RB_IO_TIMEOUT
#define IO_TIMEOUT_ERROR rb_eIOTimeoutError
#else
#define IO_TIMEOUT_ERROR rb_eIOError
Expand Down

0 comments on commit a9eec79

Please sign in to comment.