mirror of
https://github.com/smoltcp-rs/smoltcp.git
synced 2025-10-03 07:35:07 +00:00
Remove unknown target-arch for TUNSETIFF syscalls
The endianness of the target architecture cannot be specified using target_arch. The endianness can be specified using target_endian. The target description for mipsel-unknown-linux-gnu is found here: https://github.com/rust-lang/rust/blob/master/compiler/rustc_target/src/spec/targets/mipsel_unknown_linux_gnu.rs In this specification, the arch is set to "mips" and not "mipsel".
This commit is contained in:
parent
53caf70f64
commit
94d7ab8e4d
@ -9,12 +9,12 @@ pub const ETH_P_IEEE802154: libc::c_short = 0x00F6;
|
||||
// https://github.com/golang/sys/blob/master/unix/zerrors_linux_<arch>.go
|
||||
pub const TUNSETIFF: libc::c_ulong = if cfg!(any(
|
||||
target_arch = "mips",
|
||||
all(target_arch = "mips", target_endian = "little"),
|
||||
target_arch = "mips64",
|
||||
target_arch = "mips64el",
|
||||
target_arch = "mipsel",
|
||||
all(target_arch = "mips64", target_endian = "little"),
|
||||
target_arch = "powerpc",
|
||||
target_arch = "powerpc64",
|
||||
target_arch = "powerpc64le",
|
||||
all(target_arch = "powerpc64", target_endian = "little"),
|
||||
target_arch = "sparc64"
|
||||
)) {
|
||||
0x800454CA
|
||||
|
Loading…
x
Reference in New Issue
Block a user