Skip to content

Commit 1294fec

Browse files
committed
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>
2 parents 605f6c3 + 2d8ed5c commit 1294fec

File tree

1 file changed

+1
-0
lines changed
  • src/unix/linux_like/linux/uclibc/mips/mips32

1 file changed

+1
-0
lines changed

src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub type nlink_t = u32;
1313
pub type fsblkcnt_t = ::c_ulong;
1414
pub type fsfilcnt_t = ::c_ulong;
1515
pub type __u64 = ::c_ulonglong;
16+
pub type __s64 = ::c_longlong;
1617
pub type fsblkcnt64_t = u64;
1718
pub type fsfilcnt64_t = u64;
1819

0 commit comments

Comments
 (0)