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:
snek 2024-12-18 14:47:21 +01:00 committed by GitHub
parent 8590aa9cee
commit ae74407412
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 7 deletions

View file

@ -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,