Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build error with Ruby 3.1 on Windows #112

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

Watson1978
Copy link
Contributor

@Watson1978 Watson1978 commented Aug 21, 2024

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 #111

Contribution

@ioquatix
Copy link
Member

I may need to review the test failures, it may be unrelated to the PR. I'll try to take a look shortly.

@Watson1978
Copy link
Contributor Author

Thanks

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.
@ioquatix ioquatix merged commit 6c434e2 into socketry:main Oct 3, 2024
25 of 31 checks passed
@ioquatix
Copy link
Member

ioquatix commented Oct 3, 2024

This is a good start to better windows support. Thanks.

@ioquatix
Copy link
Member

ioquatix commented Oct 4, 2024

I have released v1.7.0 which works with Windows, tested on Ruby v3.1+.

For better compatibility, we should work on #97.

@Watson1978 Watson1978 deleted the fix-build-error branch October 4, 2024 00:56
@Watson1978
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build error with Ruby 3.1 on Windows
2 participants