From deb61c870996eccf71683d977677caf09c56b627 Mon Sep 17 00:00:00 2001 From: bgermann Date: Sun, 3 Sep 2017 15:11:24 +0200 Subject: [PATCH] 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. --- src/unix/solaris/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/solaris/mod.rs b/src/unix/solaris/mod.rs index 4461a79b..771f6849 100644 --- a/src/unix/solaris/mod.rs +++ b/src/unix/solaris/mod.rs @@ -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;