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

Add Haiku support #24

Closed
wants to merge 1 commit into from
Closed

Add Haiku support #24

wants to merge 1 commit into from

Conversation

sikmir
Copy link

@sikmir sikmir commented Jun 20, 2019

Ref. termios.h

@dcuddeback
Copy link
Owner

@sikmir Thanks for sending in the patch, and sorry for the long delay. I've been on Haitus for a while.

I was working on landing this today. My progress is in this commit: 3d62fc7. I made a couple changes based on the header files:

  • Redefined tcflag_t as u32. It's typedef'd as __haiku_uint32 in termios.h. I think u32
    matches the intended use of that type.
  • I provided an implementation for cfsetspeed(), because that seems to be missing in Haiku.
    Without it, anything that attempts to use cfsetspeed() will fail to compile.

However, I wasn't able to compile it on Haiku. Cargo crashes with a segfault inside openssl. Would you be able to verify that cargo build and cargo test run successfully on Haiku using the feature/haiku branch?

Also, any idea what I might be doing wrong to get Rust running on Haiku? I installed Rust with pkgman install rust_bin. I tried the beta release as well as the latest nightly. I'm not familiar with Haiku.

@dcuddeback
Copy link
Owner

@sikmir Closing in favor of #26, which has the changes I made. I'm looking for help getting Rust running on Haiku so that I can test it. If you can help, please see #26.

@dcuddeback dcuddeback closed this Apr 6, 2020
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.

2 participants