diff options
author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-03-19 02:01:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-19 02:01:59 +0100 |
commit | a87590e34e18646aee82771471649761d9acf02f (patch) | |
tree | af34289808188ce7912bc09ce18c85afcd0e7c70 /library/std/src/sys/unix/process/process_unix.rs | |
parent | ba2d5ede70ed7e37d7f13a397b9d554e2386a19c (diff) | |
parent | bc199b57784ec60bc9492c1a046c585af7ee8ea4 (diff) | |
download | rust-a87590e34e18646aee82771471649761d9acf02f.tar.gz |
Rollup merge of #92612 - atopia:update-lib-l4re, r=dtolnay
Update stdlib for the l4re target
This PR contains the work by ``@humenda`` and myself to update standard library support for the x86_64-unknown-l4re-uclibc tier 3 target, split out from humenda/rust as requested in #85967. The changes have been rebased on current master and updated in follow up commits by myself. The publishing of the changes is authorized and preferred by the original author. To preserve attribution, when standard library changes were introduced as part of other changes to the compiler, I have kept the changes concerning the standard library and altered the commit messages as indicated. Any incompatibilities have been remedied in follow up commits, so that the PR as a whole should result in a clean update of the target.
Diffstat (limited to 'library/std/src/sys/unix/process/process_unix.rs')
-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 9d2803b40c4..2a97a802a20 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 |