Fix build error with Ruby 3.1 on Windows
Since Ruby 3.2, pipe function declaration is provided in https://github.com/ruby/ruby/blob/21c708ee802e1a59901eccc6448e40e8f72189b8/include/ruby/missing.h#L292
However, it does not provided it with Ruby 3.1.
This patch will define pipe macro to use proper function due to fix build error.
Types of Changes
- Bug fix.
Fix https://github.com/socketry/io-event/issues/111
Contribution
- [ ] I added tests for my changes.
- [x] I tested my changes locally.
- [x] I agree to the Developer's Certificate of Origin 1.1.
I may need to review the test failures, it may be unrelated to the PR. I'll try to take a look shortly.
Thanks
This is a good start to better windows support. Thanks.
I have released v1.7.0 which works with Windows, tested on Ruby v3.1+.
For better compatibility, we should work on https://github.com/socketry/io-event/pull/97.
Thanks!