Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: linux build fix with nix

Vanalite7f857de639fc
diff --git a/src-tauri/src/core/openclaw/sandbox_native.rs b/src-tauri/src/core/openclaw/sandbox_native.rs
index c37ec2025..0d7dd9353 100644
--- a/src-tauri/src/core/openclaw/sandbox_native.rs
+++ b/src-tauri/src/core/openclaw/sandbox_native.rs
@@ -17,6 +17,9 @@ use std::process::Stdio;
#[cfg(target_os = "linux")]
use super::sandbox::{IsolationTier, Sandbox, SandboxConfig, SandboxHandle, SandboxStatus};
+#[cfg(target_os = "linux")]
+use nix::libc;
+
/// Default memory limit: 512 MB
#[cfg(target_os = "linux")]
const DEFAULT_MEMORY_LIMIT_BYTES: u64 = 512 * 1024 * 1024;