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 on Ruby 3 #9

Merged
merged 1 commit into from
Dec 15, 2020
Merged

fix build on Ruby 3 #9

merged 1 commit into from
Dec 15, 2020

Conversation

tenderlove
Copy link
Contributor

Hi,

This gem doesn't build on Ruby 3. If I try to build on Ruby 3.0, I get the following errors:

../../../../ext/termios.c:311:5: error: use of undeclared identifier 'OpenFile'
    OpenFile *fptr;
    ^
../../../../ext/termios.c:311:15: error: use of undeclared identifier 'fptr'
    OpenFile *fptr;
              ^
../../../../ext/termios.c:314:21: error: use of undeclared identifier 'fptr'
    GetOpenFile(io, fptr);
                    ^

The patch in this PR makes the gem build again.

Thanks!

@arika arika merged commit 4863a0c into arika:master Dec 15, 2020
@arika
Copy link
Owner

arika commented Dec 15, 2020

Thank you 😃

@tenderlove tenderlove deleted the fix-ruby-3 branch December 15, 2020 19:38
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.

None yet

2 participants