diff options
| author | Benjamin Lamowski <benjamin.lamowski@kernkonzept.com> | 2021-05-31 15:00:11 +0200 |
|---|---|---|
| committer | Benjamin Lamowski <benjamin.lamowski@kernkonzept.com> | 2022-03-09 11:53:27 +0100 |
| commit | 898f379817602376442b814109e1abc42457fbbb (patch) | |
| tree | 174b6c3dc651164460ad7dce7d32759d568f821c | |
| parent | 11b717647ef9a772a3a4b9e4dd6282db0b69ff32 (diff) | |
| download | rust-898f379817602376442b814109e1abc42457fbbb.tar.gz rust-898f379817602376442b814109e1abc42457fbbb.zip | |
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.
| -rw-r--r-- | library/std/src/sys/unix/process/process_unix.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/process/process_unix.rs b/library/std/src/sys/unix/process/process_unix.rs index 07a0339c066..c8fe1a7378d 100644 --- a/library/std/src/sys/unix/process/process_unix.rs +++ b/library/std/src/sys/unix/process/process_unix.rs @@ -27,7 +27,10 @@ use crate::sys::weak::weak; use libc::RTP_ID as pid_t; #[cfg(not(target_os = "vxworks"))] -use libc::{c_int, gid_t, pid_t, uid_t}; +use libc::{c_int, pid_t}; + +#[cfg(not(any(target_os = "vxworks", target_os = "l4re")))] +use libc::{gid_t, uid_t}; //////////////////////////////////////////////////////////////////////////////// // Command |
