Skip to content

Commit ee62aab

Browse files
committed
Fix android build
1 parent 631fa2b commit ee62aab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libstd/sys/common/net.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use cmp;
1414
use ffi::{CStr, CString};
1515
use fmt;
1616
use io::{self, Error, ErrorKind};
17-
use libc::{c_int, c_char, c_void, c_uint};
17+
use libc::{c_int, c_char, c_void};
1818
use mem;
1919
#[allow(deprecated)]
2020
use net::{SocketAddr, Shutdown, IpAddr, Ipv4Addr, Ipv6Addr};
@@ -107,8 +107,8 @@ fn to_ipv6mr_interface(value: u32) -> c_int {
107107
}
108108

109109
#[cfg(not(target_os = "android"))]
110-
fn to_ipv6mr_interface(value: u32) -> c_uint {
111-
value as c_uint
110+
fn to_ipv6mr_interface(value: u32) -> ::libc::c_uint {
111+
value as ::libc::c_uint
112112
}
113113

114114
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)