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

WIP: Fix OpenBSD support #216

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

WIP: Fix OpenBSD support #216

wants to merge 2 commits into from

Conversation

tobhe
Copy link

@tobhe tobhe commented Feb 25, 2025

This makes OpenBSD work properly on my machine.

WIP because it depends on a libc change in rust-lang/libc#4285 (comment)

My rust experience is rather limited so I'm looking forward to hear how this could be improved.

One potential problem I see is that devname() is not thread-safe as is because the name buffer is static. Does this need to be copied safely, guarded by a lock or marked unsafe?

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.

1 participant