Skip to content

Commit

Permalink
Auto merge of #658 - FenrirWolf:newlib-memalign, r=alexcrichton
Browse files Browse the repository at this point in the history
Add memalign for newlib

Newlib doesn't have `posix_memalign`
  • Loading branch information
bors committed Jul 10, 2017
2 parents 472ffbb + 5c38f42 commit 3f903a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/newlib/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,7 @@ extern {
host: *mut ::c_char, hostlen: socklen_t,
serv: *mut ::c_char, servlen: socklen_t,
flags: ::c_int) -> ::c_int;
pub fn memalign(align: ::size_t, size: ::size_t) -> *mut ::c_void;
}

cfg_if! {
Expand Down

0 comments on commit 3f903a1

Please sign in to comment.