Fix crossterm compilation on macOS

This commit is contained in:
Blaž Hrastnik 2024-08-07 06:46:59 +09:00
parent 70918570a9
commit 6ba46e5cbf
2 changed files with 2 additions and 1 deletions

1
Cargo.lock generated
View file

@ -271,6 +271,7 @@ dependencies = [
"crossterm_winapi",
"filedescriptor",
"futures-core",
"libc",
"mio",
"parking_lot",
"rustix",

View file

@ -77,7 +77,7 @@ signal-hook-tokio = { version = "0.3", features = ["futures-v0_3"] }
libc = "0.2.155"
[target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.28", features = ["event-stream", "use-dev-tty"] }
crossterm = { version = "0.28", features = ["event-stream", "use-dev-tty", "libc"] }
[build-dependencies]
helix-loader = { path = "../helix-loader" }