Skip to content

Commit c69a01c

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 f016aa5 commit c69a01c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ use crate::sys::process::process_common::*;
1212
#[cfg(target_os = "vxworks")]
1313
use libc::RTP_ID as pid_t;
1414

15-
#[cfg(not(target_os = "vxworks"))]
16-
use libc::{c_int, gid_t, pid_t, uid_t};
17-
#[cfg(not(target_os = "l4re"))]
18-
use libc::{gid_t, uid_t};
15+
#[cfg(target_os = "l4re")]
1916
use libc::{c_int, pid_t};
2017

18+
#[cfg(not(any(target_os = "vxworks", target_os = "l4re")))]
19+
use libc::{c_int, gid_t, pid_t, uid_t};
20+
2121
////////////////////////////////////////////////////////////////////////////////
2222
// Command
2323
////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)