summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Zoeller <rtzoeller@rtzoeller.com>2022-12-02 19:43:25 -0600
committerRyan Zoeller <rtzoeller@rtzoeller.com>2022-12-02 19:43:25 -0600
commitd26534fb8081031548509d67863a1e2defe92ca7 (patch)
tree9f68b8a8c2b8d077db7b94b0cf95004b851964f2
parented8319c01a3fff74df24bc9c920d742a0f94874e (diff)
downloadnix-d26534fb8081031548509d67863a1e2defe92ca7.zip
Enable ucontext module on aarch64-unknown-linux-gnu
-rw-r--r--CHANGELOG.md4
-rw-r--r--Cargo.toml2
-rw-r--r--src/lib.rs7
3 files changed, 10 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 129d93f2..4ac9dec5 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,8 @@ This project adheres to [Semantic Versioning](https://semver.org/).
### Added
- Add `PF_ROUTE` to `SockType` on macOS, iOS, all of the BSDs, Fuchsia, Haiku, Illumos.
([#1867](https://github.com/nix-rust/nix/pull/1867))
+- Added `nix::ucontext` module on `aarch64-unknown-linux-gnu`.
+ (#[1662](https://github.com/nix-rust/nix/pull/1662))
### Changed
### Fixed
@@ -213,7 +215,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
(#[1563](https://github.com/nix-rust/nix/pull/1563))
- Added `process_vm_readv` and `process_vm_writev` on Android.
(#[1557](https://github.com/nix-rust/nix/pull/1557))
-- Added `nix::uncontext` module on s390x.
+- Added `nix::ucontext` module on s390x.
(#[1662](https://github.com/nix-rust/nix/pull/1662))
- Implemented `Extend`, `FromIterator`, and `IntoIterator` for `SigSet` and
added `SigSet::iter` and `SigSetIter`.
diff --git a/Cargo.toml b/Cargo.toml
index cfe20d82..c337127f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -27,7 +27,7 @@ targets = [
]
[dependencies]
-libc = { version = "0.2.137", features = [ "extra_traits" ] }
+libc = { git = "https://github.com/rust-lang/libc", rev = "15d27952bfa93e5e4f419c603f275486f15a050c", features = [ "extra_traits" ] }
bitflags = "1.1"
cfg-if = "1.0"
pin-utils = { version = "0.1.0", optional = true }
diff --git a/src/lib.rs b/src/lib.rs
index 6b821257..6349d37e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -144,7 +144,12 @@ feature! {
// provides bindings for them.
#[cfg(all(
target_os = "linux",
- any(target_arch = "s390x", target_arch = "x86", target_arch = "x86_64")
+ any(
+ target_arch = "aarch64",
+ target_arch = "s390x",
+ target_arch = "x86",
+ target_arch = "x86_64"
+ )
))]
feature! {
#![feature = "ucontext"]