Skip to content

Commit deb61c8

Browse files
authored
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.
1 parent e102a72 commit deb61c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/solaris/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1245,6 +1245,8 @@ extern {
12451245

12461246
pub fn msync(addr: *mut ::c_void, len: ::size_t, flags: ::c_int) -> ::c_int;
12471247

1248+
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;
1249+
12481250
pub fn recvfrom(socket: ::c_int, buf: *mut ::c_void, len: ::size_t,
12491251
flags: ::c_int, addr: *mut ::sockaddr,
12501252
addrlen: *mut ::socklen_t) -> ::ssize_t;

0 commit comments

Comments
 (0)