Skip to content

Commit 67790f1

Browse files
authored
Add ioctl cargo feature for linux-raw-sys ... (#645)
... when using `libc` backend. May fix issue described in #637 (comment) and CI errors for `nix` under MIPS and other arch Linux and Android.
1 parent bebe6b6 commit 67790f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ libc = { version = "0.2.142", features = ["extra_traits"] }
5656
# Some syscalls do not have libc wrappers, such as in `io_uring`. For these,
5757
# the libc backend uses the linux-raw-sys ABI and `libc::syscall`.
5858
[target.'cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))))'.dependencies]
59-
linux-raw-sys = { version = "0.3.6", default-features = false, features = ["general", "no_std"] }
59+
linux-raw-sys = { version = "0.3.6", default-features = false, features = ["general", "ioctl", "no_std"] }
6060

6161
# For the libc backend on Windows, use the Winsock2 API in windows-sys.
6262
[target.'cfg(windows)'.dependencies.windows-sys]

0 commit comments

Comments
 (0)