Skip to content

Commit cfd561c

Browse files
committed
Auto merge of #1605 - zvirja:fix-mipsel-unknown-linux-uclibc, r=gnzlbg
Add ucred and socket related types to uclibc-mips32 Fix compilation of the [tokio](https://github.com/tokio-rs) rust for MIPS architecture when using uClibc. Added missed types, which are defined in library headers: https://github.com/kraj/uClibc/blob/ca1c74d67dd115d059a875150e10b8560a9c35a8/libc/sysdeps/linux/common/bits/socket.h#L320 https://github.com/kraj/uClibc/blob/ca1c74d67dd115d059a875150e10b8560a9c35a8/libc/sysdeps/linux/common/bits/in.h#L35-L36 https://github.com/kraj/uClibc/blob/ca1c74d67dd115d059a875150e10b8560a9c35a8/libc/sysdeps/linux/common/bits/in.h#L140-L143 Should also solve deprecrated/net2-rs#88 Revisit of #1500
2 parents 51ae96a + 7335d1e commit cfd561c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/uclibc/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,12 @@ s! {
288288
pub msgtql: ::c_int,
289289
pub msgseg: ::c_ushort,
290290
}
291+
292+
pub struct ucred {
293+
pub pid: ::pid_t,
294+
pub uid: ::uid_t,
295+
pub gid: ::gid_t,
296+
}
291297
}
292298

293299
s_no_extra_traits! {

0 commit comments

Comments
 (0)