Unnamed repository; edit this file 'description' to name the repository.
Fix crossterm compilation on macOS
Blaž Hrastnik 2024-08-07
parent 7091857 · commit 6ba46e5
-rw-r--r--Cargo.lock1
-rw-r--r--helix-term/Cargo.toml2
2 files changed, 2 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 9393ffec..269437f6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -271,6 +271,7 @@ dependencies = [
"crossterm_winapi",
"filedescriptor",
"futures-core",
+ "libc",
"mio",
"parking_lot",
"rustix",
diff --git a/helix-term/Cargo.toml b/helix-term/Cargo.toml
index 3859da5e..6e27b00f 100644
--- a/helix-term/Cargo.toml
+++ b/helix-term/Cargo.toml
@@ -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" }