[breaking change] recvfrom takes a mut pointer on Android

This commit is contained in:
gnzlbg 2019-05-23 11:32:07 +02:00
parent 918d371af0
commit ebe64f1e25

View File

@ -1941,7 +1941,7 @@ extern {
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)
-> ::c_int;
pub fn recvfrom(socket: ::c_int, buf: *mut ::c_void, len: ::size_t,
flags: ::c_int, addr: *const ::sockaddr,
flags: ::c_int, addr: *mut ::sockaddr,
addrlen: *mut ::socklen_t) -> ::ssize_t;
pub fn getnameinfo(sa: *const ::sockaddr,
salen: ::socklen_t,