mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
chore: upgrade libc (#27414)
need to do this for quic and they deprecated this method in libc without actually providing an alternative so :/
This commit is contained in:
parent
8590aa9cee
commit
ae74407412
5 changed files with 19 additions and 7 deletions
|
@ -424,8 +424,11 @@ fn rss() -> usize {
|
|||
let mut count = libc::MACH_TASK_BASIC_INFO_COUNT;
|
||||
// SAFETY: libc calls
|
||||
let r = unsafe {
|
||||
extern "C" {
|
||||
static mut mach_task_self_: std::ffi::c_uint;
|
||||
}
|
||||
libc::task_info(
|
||||
libc::mach_task_self(),
|
||||
mach_task_self_,
|
||||
libc::MACH_TASK_BASIC_INFO,
|
||||
task_info.as_mut_ptr() as libc::task_info_t,
|
||||
&mut count as *mut libc::mach_msg_type_number_t,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue