diff options
author | Nathan Ricci <naricc@microsoft.com> | 2022-09-22 20:57:18 -0400 |
---|---|---|
committer | Nathan Ricci <naricc@microsoft.com> | 2022-09-22 22:29:57 -0400 |
commit | b906c3d41f166eda9e409117a9358f51547aa7e4 (patch) | |
tree | 9e481b90e88081c15cf5b49026579e9afa0d3390 | |
parent | d69673910aafdd2dfb83707f3bf895230415599c (diff) | |
download | rust-libc-b906c3d41f166eda9e409117a9358f51547aa7e4.tar.gz |
Exposed malloc_size on mac
-rw-r--r-- | src/unix/bsd/apple/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index ead06daa36..9c13cca9dd 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -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 { |