diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2020-10-12 11:17:26 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2020-10-15 10:30:55 -0700 |
commit | 8a9c5346868e2c4cc4899bf906325b5aa0169528 (patch) | |
tree | 6bea72af335ee2b028fdf8797313e6b00f4d1cf8 | |
parent | c8e8deff0e26a05165e66db17732794c2cd67324 (diff) | |
download | nix-8a9c5346868e2c4cc4899bf906325b5aa0169528.zip |
Update to cfg-if 1.0
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | test/test_unistd.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -19,7 +19,7 @@ exclude = [ [dependencies] libc = { version = "0.2.78", features = [ "extra_traits" ] } bitflags = "1.1" -cfg-if = "0.1.10" +cfg-if = "1.0" [target.'cfg(target_os = "dragonfly")'.build-dependencies] cc = "1" diff --git a/test/test_unistd.rs b/test/test_unistd.rs index c7a75fbe..a4b8a916 100644 --- a/test/test_unistd.rs +++ b/test/test_unistd.rs @@ -377,7 +377,7 @@ cfg_if!{ "./sh", AtFlags::empty()); execve_test_factory!(test_execveat_absolute, execveat, File::open("/").unwrap().into_raw_fd(), "/system/bin/sh", AtFlags::empty()); - } else if #[cfg(all(target_os = "linux"), any(target_arch ="x86_64", target_arch ="x86"))] { + } else if #[cfg(all(target_os = "linux", any(target_arch ="x86_64", target_arch ="x86")))] { use nix::fcntl::AtFlags; execve_test_factory!(test_execveat_empty, execveat, File::open("/bin/sh").unwrap().into_raw_fd(), "", AtFlags::AT_EMPTY_PATH); |