Skip to content

Commit

Permalink
Replace mach with mach2
Browse files Browse the repository at this point in the history
  • Loading branch information
Arshia001 committed Jun 20, 2024
1 parent a68cddf commit 0cea835
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
11 changes: 1 addition & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions lib/vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ serde = { version = "1.0", features = ["derive", "rc"], optional = true }
enum-iterator = "0.7.0"
scopeguard = "1.1.0"
lazy_static = "1.4.0"
region = { version = "3.0" }
region = { version = "3.0.2" }
corosensei = { version = "0.1.2" }
derivative = { version = "^2" }
dashmap = { version = "5.4" }
Expand All @@ -35,7 +35,7 @@ tracing = { version = "0.1", optional = true }
crossbeam-queue = "0.3.8"

[target.'cfg(target_vendor = "apple")'.dependencies]
mach = "0.3.2"
mach2 = "0.4.2"

[target.'cfg(target_os = "windows")'.dependencies]
winapi = { version = "0.3", features = ["winbase", "memoryapi", "errhandlingapi"] }
Expand Down
12 changes: 6 additions & 6 deletions lib/vm/src/trap/traphandlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ cfg_if::cfg_if! {
// For more details see https://github.com/mono/mono/commit/8e75f5a28e6537e56ad70bf870b86e22539c2fb7
#[cfg(target_vendor = "apple")]
{
use mach::exception_types::*;
use mach::kern_return::*;
use mach::port::*;
use mach::thread_status::*;
use mach::traps::*;
use mach::mach_types::*;
use mach2::exception_types::*;
use mach2::kern_return::*;
use mach2::port::*;
use mach2::thread_status::*;
use mach2::traps::*;
use mach2::mach_types::*;

extern "C" {
fn task_set_exception_ports(
Expand Down

0 comments on commit 0cea835

Please sign in to comment.