diff --git a/Cargo.toml b/Cargo.toml index dccc723..a9dcdd4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,7 +25,7 @@ with_dbus = ["dbus"] default = ["with_dbus"] [target.'cfg(target_os = "macos")'.dependencies] -mach = "0.3" +mach2 = "0.4" libc = "0.2" [target.'cfg(target_os = "windows")'.dependencies.windows-sys] diff --git a/src/lib.rs b/src/lib.rs index de4f807..0166664 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,7 +89,7 @@ cfg_if! { mod rt_mach; #[allow(unused, non_camel_case_types, non_snake_case, non_upper_case_globals)] mod mach_sys; - extern crate mach; + extern crate mach2; extern crate libc; use rt_mach::promote_current_thread_to_real_time_internal; use rt_mach::demote_current_thread_from_real_time_internal; diff --git a/src/rt_mach.rs b/src/rt_mach.rs index 3e1d57b..76da034 100644 --- a/src/rt_mach.rs +++ b/src/rt_mach.rs @@ -2,10 +2,10 @@ use crate::mach_sys::*; use crate::AudioThreadPriorityError; use libc::{pthread_self, pthread_t}; use log::info; -use mach::kern_return::{kern_return_t, KERN_SUCCESS}; -use mach::mach_time::{mach_timebase_info, mach_timebase_info_data_t}; -use mach::message::mach_msg_type_number_t; -use mach::port::mach_port_t; +use mach2::kern_return::{kern_return_t, KERN_SUCCESS}; +use mach2::mach_time::{mach_timebase_info, mach_timebase_info_data_t}; +use mach2::message::mach_msg_type_number_t; +use mach2::port::mach_port_t; use std::mem::size_of; extern "C" {