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:
bgermann 2017-09-03 15:11:24 +02:00 committed by GitHub
parent e102a72651
commit deb61c8709

View File

@ -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;