summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKelvin Ly <kelvin.ly1618@gmail.com>2017-11-14 14:18:55 -0500
committerKelvin Ly <kelvin.ly1618@gmail.com>2017-11-14 14:18:55 -0500
commit58c3fa0feb7f1aefa4b6f948f69152accb188cc8 (patch)
treeb2036e56746942644a62bfefcd9007b4334f21d7 /src
parent73f531b07d9fda89f1cbbda9f450259d3c148cfa (diff)
downloadrust-libc-58c3fa0feb7f1aefa4b6f948f69152accb188cc8.tar.gz
Add some fixes to allow it to compile with newer libstd
Diffstat (limited to 'src')
-rw-r--r--src/unix/uclibc/mips/mips32.rs2
-rw-r--r--src/unix/uclibc/mod.rs2
2 files changed, 3 insertions, 1 deletions
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;