summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-12-03 17:13:52 +0000
committerGitHub <noreply@github.com>2022-12-03 17:13:52 +0000
commit05f925a888f755991f73ecd9341d3e9b15acc40d (patch)
tree5a3195cead4bdb76f74cbe3755ba86cc6735d9ac
parent691ab1311b9a0fd8616ff3f4cba370d4fdec9378 (diff)
parentd26534fb8081031548509d67863a1e2defe92ca7 (diff)
downloadnix-05f925a888f755991f73ecd9341d3e9b15acc40d.zip
Merge #1902
1902: Enable ucontext module on aarch64-unknown-linux-gnu r=asomers a=rtzoeller Untested, but I saw https://github.com/rust-lang/libc/commit/fd32da6e7dfa2afcae86e176904244cf45a90c06 and figured we should uptake it. Co-authored-by: Ryan Zoeller <rtzoeller@rtzoeller.com>
-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 3da3a509..f5a2dc67 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
@@ -216,7 +218,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"]