From 236a529a9db9aa2db4824fea91fd8caeba89af37 Mon Sep 17 00:00:00 2001 From: Hunter Bown Date: Fri, 8 May 2026 02:57:25 -0500 Subject: [PATCH] fix(deps): extend libc to all Unix targets for FreeBSD compatibility (#1173) `libc` was declared only for macOS and Linux, causing a build failure on FreeBSD (#1143). All call sites that use `libc` are already guarded with `#[cfg(unix)]` or narrower OS-specific guards, so broadening the dependency to `cfg(unix)` fixes FreeBSD (and other BSDs) with no behavioural change on macOS or Linux. Co-authored-by: Vince --- crates/tui/Cargo.toml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/tui/Cargo.toml b/crates/tui/Cargo.toml index 55a44274..c71a36c9 100644 --- a/crates/tui/Cargo.toml +++ b/crates/tui/Cargo.toml @@ -75,10 +75,7 @@ wiremock = "0.6" pretty_assertions = "1.4" vt100 = "0.15" -[target.'cfg(target_os = "macos")'.dependencies] -libc = "0.2" - -[target.'cfg(target_os = "linux")'.dependencies] +[target.'cfg(unix)'.dependencies] libc = "0.2" [target.'cfg(target_os = "windows")'.dependencies]