Skip to content

Commit f1c3df7

Browse files
ammarioclaude
andcommitted
Add extern crate libc declaration for Linux
The libc crate needs to be explicitly declared when used on Linux for getuid() and kill() system calls. 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 30371f0 commit f1c3df7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/jail/linux.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// libc is needed for getuid() and kill() system calls on Linux
2+
#[cfg(target_os = "linux")]
3+
extern crate libc;
4+
15
use super::{Jail, JailConfig};
26
use anyhow::{Context, Result};
37
use std::process::{Command, ExitStatus};

0 commit comments

Comments
 (0)