Skip to content

Commit 898f379

Browse files
committed
drop unused libc imports on L4Re
As a capability-based microkernel OS, L4Re only has incomplete support for POSIX APIs, in particular it does not implement UIDs and GIDs.
1 parent 11b7176 commit 898f379

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/std/src/sys/unix/process/process_unix.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ use crate::sys::weak::weak;
2727
use libc::RTP_ID as pid_t;
2828

2929
#[cfg(not(target_os = "vxworks"))]
30-
use libc::{c_int, gid_t, pid_t, uid_t};
30+
use libc::{c_int, pid_t};
31+
32+
#[cfg(not(any(target_os = "vxworks", target_os = "l4re")))]
33+
use libc::{gid_t, uid_t};
3134

3235
////////////////////////////////////////////////////////////////////////////////
3336
// Command

0 commit comments

Comments
 (0)