Skip to content

Commit

Permalink
Fix android build
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Mar 3, 2016
1 parent 631fa2b commit ee62aab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libstd/sys/common/net.rs
Expand Up @@ -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};
Expand Down Expand Up @@ -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
}

////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit ee62aab

Please sign in to comment.