From a0dfec72f50d3d2908774ca1b44487498bd2bd0f Mon Sep 17 00:00:00 2001 From: Jeremy Rose Date: Fri, 21 Nov 2025 13:21:51 -0800 Subject: [PATCH] macos --- codex-rs/core/src/sandboxing/mac/seatbelt.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codex-rs/core/src/sandboxing/mac/seatbelt.rs b/codex-rs/core/src/sandboxing/mac/seatbelt.rs index 54e8821e36..0c7ad7fb14 100644 --- a/codex-rs/core/src/sandboxing/mac/seatbelt.rs +++ b/codex-rs/core/src/sandboxing/mac/seatbelt.rs @@ -145,6 +145,7 @@ fn confstr_path(name: libc::c_int) -> Option { } fn macos_dir_params() -> Vec<(String, PathBuf)> { + #[cfg(target_os = "macos")] if let Some(p) = confstr_path(libc::_CS_DARWIN_USER_CACHE_DIR) { return vec![("DARWIN_USER_CACHE_DIR".to_string(), p)]; }