From 6ba46e5cbf599fc1c68399f055e7db9666c22111 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= <blaz@mxxn.io>
Date: Wed, 7 Aug 2024 06:46:59 +0900
Subject: [PATCH] Fix crossterm compilation on macOS

---
 Cargo.lock            | 1 +
 helix-term/Cargo.toml | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

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" }