Skip to content

Commit cb4cefa

Browse files
fix: guard AI agent proc scan hook for non-Linux builds
1 parent 0a332dc commit cb4cefa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/src/platform/platform_synchronizer/proc_scan_hook.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use super::ProcessData;
1818

1919
pub fn proc_scan_hook(_proc_root: &str, _process_datas: &mut Vec<ProcessData>) {
2020
// Enterprise: clean dead AI Agent PIDs and mark alive ones with biz_type
21-
#[cfg(feature = "enterprise")]
21+
#[cfg(all(feature = "enterprise", any(target_os = "linux", target_os = "android")))]
2222
{
2323
use std::collections::HashSet;
2424

0 commit comments

Comments
 (0)