From 58c3fa0feb7f1aefa4b6f948f69152accb188cc8 Mon Sep 17 00:00:00 2001 From: Kelvin Ly Date: Tue, 14 Nov 2017 14:18:55 -0500 Subject: Add some fixes to allow it to compile with newer libstd --- src/unix/uclibc/mips/mips32.rs | 2 +- src/unix/uclibc/mod.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/unix/uclibc/mips/mips32.rs b/src/unix/uclibc/mips/mips32.rs index a81e884e0b..70d26e78d9 100644 --- a/src/unix/uclibc/mips/mips32.rs +++ b/src/unix/uclibc/mips/mips32.rs @@ -66,7 +66,7 @@ s! { } pub struct sigaction { - pub sa_flags: ::c_uint, + pub sa_flags: ::c_int, pub sa_sigaction: ::sighandler_t, pub sa_mask: sigset_t, _restorer: *mut ::c_void, diff --git a/src/unix/uclibc/mod.rs b/src/unix/uclibc/mod.rs index df5ea71e8e..0ee3a1f876 100644 --- a/src/unix/uclibc/mod.rs +++ b/src/unix/uclibc/mod.rs @@ -790,6 +790,8 @@ pub const IP_TTL: ::c_int = 2; pub const IP_HDRINCL: ::c_int = 3; pub const IP_ADD_MEMBERSHIP: ::c_int = 35; pub const IP_DROP_MEMBERSHIP: ::c_int = 36; +pub const IPV6_ADD_MEMBERSHIP ::c_int = 20; +pub const IPV6_DROP_MEMBERSHIP ::c_int = 20; pub const IPV6_JOIN_GROUP: ::c_int = 20; pub const IPV6_LEAVE_GROUP: ::c_int = 21; -- cgit v1.2.1