Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
__dfly_error() was removed from Rust many years ago. DragonFly uses a thread-local errno variable, but #[thread_local] is feature-gated and not available in stable Rust as of this writing (Rust 1.31.0). We have to use a C extension to access it. Tracking issue for `thread_local` stabilization: rust-lang/rust#29594 Once this becomes stable, we can simply use: extern { #[thread_local] static errno: c_int; }
- Loading branch information