Auto merge of #2777 - jjl:musl-malloc_usable_size, r=Amanieu

add malloc_usable_size for musl
This commit is contained in:
bors 2022-05-05 21:37:14 +00:00
commit 78d6835374

View file

@ -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! {