Skip to content

Commit

Permalink
Exposed malloc_size on bsd
Browse files Browse the repository at this point in the history
Move malloc_size down one level.
  • Loading branch information
naricc committed Sep 23, 2022
1 parent d696739 commit 767c930
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/bsd/apple/mod.rs
Expand Up @@ -5789,6 +5789,8 @@ extern "C" {
attrBufSize: ::size_t,
options: u64,
) -> ::c_int;

pub fn malloc_size(ptr: *const ::c_void) -> ::size_t;
}

pub unsafe fn mach_task_self() -> ::mach_port_t {
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/mod.rs
Expand Up @@ -884,6 +884,7 @@ extern "C" {
pub fn srand48(seed: ::c_long);
pub fn seed48(xseed: *mut ::c_ushort) -> *mut ::c_ushort;
pub fn lcong48(p: *mut ::c_ushort);

}

cfg_if! {
Expand Down

0 comments on commit 767c930

Please sign in to comment.