summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-07-01 17:38:25 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-07-24 12:21:34 +0900
commit7e6bbc40c8781bff4d99f0ab2a363016bc5ffadd (patch)
tree653cd8c0bc77297e251d14c2d7d8eef8af14bb2c
parent5c74f2a79bb1b184d5eea975178007e2da1816ed (diff)
[ruby/io-wait] Run `have_func` with the header providing the declarations
https://github.com/ruby/io-wait/commit/48309d7877
-rw-r--r--ext/io/wait/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/wait/extconf.rb b/ext/io/wait/extconf.rb
index eecdcce99f..c6230b7783 100644
--- a/ext/io/wait/extconf.rb
+++ b/ext/io/wait/extconf.rb
@@ -5,7 +5,7 @@ if RUBY_VERSION < "2.6"
File.write("Makefile", dummy_makefile($srcdir).join(""))
else
target = "io/wait"
- have_func("rb_io_wait")
+ have_func("rb_io_wait", "ruby/io.h")
unless macro_defined?("DOSISH", "#include <ruby.h>")
have_header(ioctl_h = "sys/ioctl.h") or ioctl_h = nil
fionread = %w[sys/ioctl.h sys/filio.h sys/socket.h].find do |h|