Skip to content

Commit

Permalink
Auto merge of #2777 - jjl:musl-malloc_usable_size, r=Amanieu
Browse files Browse the repository at this point in the history
add malloc_usable_size for musl
  • Loading branch information
bors committed May 5, 2022
2 parents 7b5afd2 + f5d7ab8 commit 78d6835
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/linux_like/linux/musl/mod.rs
Expand Up @@ -751,6 +751,7 @@ extern "C" {

pub fn memfd_create(name: *const ::c_char, flags: ::c_uint) -> ::c_int;
pub fn mlock2(addr: *const ::c_void, len: ::size_t, flags: ::c_uint) -> ::c_int;
pub fn malloc_usable_size(ptr: *mut ::c_void) -> ::size_t;
}

cfg_if! {
Expand Down

0 comments on commit 78d6835

Please sign in to comment.