nix-rust / nix

Rust friendly bindings to *nix APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

could not find `ucontext` in `nix` for aarch64-linux-android

yujack008 opened this issue · comments

error[E0433]: failed to resolve: could not find ucontext in nix
--> src\main.rs:22:39
|
22 | if let Ok(context) = nix::ucontext::UContext::get() {
| ^^^^^^^^ could not find ucontext in nix

nix = { version = "0.28.0", features = ["signal","ucontext"] }

Yeah, it is currently exclusive to Linux, we can add it for Android if the required libc types and constants are available