Skip to content

Commit

Permalink
Exposed malloc_size on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
naricc committed Sep 23, 2022
1 parent d696739 commit b906c3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
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

0 comments on commit b906c3d

Please sign in to comment.