drm-rs icon indicating copy to clipboard operation
drm-rs copied to clipboard

WIP: Fix OpenBSD support

Open tobhe opened this issue 8 months ago • 5 comments

This makes OpenBSD work properly on my machine.

WIP because it depends on a libc change in https://github.com/rust-lang/libc/pull/4285#issuecomment-2682420476

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?

tobhe avatar Feb 25 '25 17:02 tobhe