Add memalign for Solaris
Unlike Illumos and Solaris 11, Solaris 10 does not support posix_memalign, so this change is needed for Solaris 10 support.
This commit is contained in:
parent
e102a72651
commit
deb61c8709
@ -1245,6 +1245,8 @@ extern {
|
||||
|
||||
pub fn msync(addr: *mut ::c_void, len: ::size_t, flags: ::c_int) -> ::c_int;
|
||||
|
||||
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;
|
||||
|
||||
pub fn recvfrom(socket: ::c_int, buf: *mut ::c_void, len: ::size_t,
|
||||
flags: ::c_int, addr: *mut ::sockaddr,
|
||||
addrlen: *mut ::socklen_t) -> ::ssize_t;
|
||||
|
Loading…
Reference in New Issue
Block a user