diff options
author | bors <bors@rust-lang.org> | 2022-11-27 02:36:34 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-11-27 02:36:34 +0000 |
commit | 1294fec803c5101bbe5eb58241f3abcd514b66af (patch) | |
tree | 274b4ba8746d17d05dbb18712fcd54820a3ec9fe | |
parent | 605f6c3e4db18e278c9642932b268a36701db845 (diff) | |
parent | 2d8ed5cc8bc97e307b37f09e0a3fbd76611b78b2 (diff) | |
download | rust-libc-1294fec803c5101bbe5eb58241f3abcd514b66af.tar.gz |
Auto merge of #3016 - cppcoffee:master, r=JohnTitor
mips32: fix missing __s64 type definition
The compilation error message:
```shell
$ cargo build hello --target mipsel-unknown-linux-uclibc
...
error[E0412]: cannot find type `__s64` in the crate root
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.137/src/unix/linux_like/linux/mod.rs:601:23
|
601 | pub src_fd: ::__s64,
| ^^^^^ help: a type alias with a similar name exists: `__u64`
|
::: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.137/src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs:15:1
|
15 | pub type __u64 = ::c_ulonglong;
| ------------------------------- similarly named type alias `__u64` defined here
For more information about this error, try `rustc --explain E0412`.
```
Signed-off-by: Xiaobo Liu <cppcoffee@gmail.com>
-rw-r--r-- | src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs b/src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs index e11dc6145e..7f9d3c0313 100644 --- a/src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs +++ b/src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs @@ -13,6 +13,7 @@ pub type nlink_t = u32; pub type fsblkcnt_t = ::c_ulong; pub type fsfilcnt_t = ::c_ulong; pub type __u64 = ::c_ulonglong; +pub type __s64 = ::c_longlong; pub type fsblkcnt64_t = u64; pub type fsfilcnt64_t = u64; |