summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-06-18 18:03:51 +1200
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2022-06-25 21:17:13 +1200
commitd2166c09b08fc144123e5a7eef69b8921bfced35 (patch)
tree6700c53796eb33904cf02b0c4125f9d1b6bc7a79 /include/ruby
parentc0b5124043c3cbc62b3314e89784eaaf0a0f244a (diff)
Copy `IO#wait*` methods from `io-wait` gem to `io.c`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/6036
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h
index 13af824ed8..b5e33c1cf9 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -55,6 +55,9 @@
#include "ruby/internal/value.h"
#include "ruby/backward/2/attributes.h" /* PACKED_STRUCT_UNALIGNED */
+// IO#wait, IO#wait_readable, IO#wait_writable, IO#wait_priority are defined by this implementation.
+#define RUBY_IO_WAIT_METHODS
+
RBIMPL_SYMBOL_EXPORT_BEGIN()
struct stat;