From ee62aab2edc1897d587dc43ff379a69b185e3be7 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 3 Mar 2016 08:11:07 -0800 Subject: Fix android build --- src/libstd/sys/common/net.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstd/sys/common') diff --git a/src/libstd/sys/common/net.rs b/src/libstd/sys/common/net.rs index d16380a96b2..bc6bbc38e14 100644 --- a/src/libstd/sys/common/net.rs +++ b/src/libstd/sys/common/net.rs @@ -14,7 +14,7 @@ use cmp; use ffi::{CStr, CString}; use fmt; use io::{self, Error, ErrorKind}; -use libc::{c_int, c_char, c_void, c_uint}; +use libc::{c_int, c_char, c_void}; use mem; #[allow(deprecated)] use net::{SocketAddr, Shutdown, IpAddr, Ipv4Addr, Ipv6Addr}; @@ -107,8 +107,8 @@ fn to_ipv6mr_interface(value: u32) -> c_int { } #[cfg(not(target_os = "android"))] -fn to_ipv6mr_interface(value: u32) -> c_uint { - value as c_uint +fn to_ipv6mr_interface(value: u32) -> ::libc::c_uint { + value as ::libc::c_uint } //////////////////////////////////////////////////////////////////////////////// -- cgit 1.4.1-3-g733a5