Use rb_io_descriptor if available for Ruby 3.3 compatibility
commitdbf5290cf9f89174f6b35a597af9a4226633d79b
authorJean Boussier <jean.boussier@gmail.com>
Mon, 28 Aug 2023 23:46:40 +0000 (29 11:46 +1200)
committerEric Wong <bofh@yhbt.net>
Tue, 5 Sep 2023 00:57:07 +0000 (5 00:57 +0000)
treeaef5e51712bdbe1f5194a843461fb8a06efcda0b
parent05527abe76473f1c0e698bff0602f1549839fbab
Use rb_io_descriptor if available for Ruby 3.3 compatibility

Ref: https://bugs.ruby-lang.org/issues/19057#note-17

Ruby 3.3 no longer fully expose rb_io_t which cause
kgio to think it's being compiled on an older Ruby.

The prefered API to use from Ruby 3.1 onwards is rb_io_descriptor.

Sent-by: Samuel Williams <samuel.williams@oriontransfer.co.nz>
ext/kgio/extconf.rb
ext/kgio/my_fileno.h