diff options
| author | Josh Stone <jistone@redhat.com> | 2020-07-22 16:38:58 -0700 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2020-07-22 16:38:58 -0700 |
| commit | ae06e13b8de23722d8bf2fb0143581df07848aa8 (patch) | |
| tree | 7b6ed366f727ef104c7aa3896d25963ae9625eea /src/libstd/sys/unix/os.rs | |
| parent | 37dd7a023b8cef226c73bb9e17b37e379b4ffb48 (diff) | |
| download | rust-ae06e13b8de23722d8bf2fb0143581df07848aa8.tar.gz rust-ae06e13b8de23722d8bf2fb0143581df07848aa8.zip | |
Move the pipe2 call behind a hard target `#[cfg]`
Diffstat (limited to 'src/libstd/sys/unix/os.rs')
| -rw-r--r-- | src/libstd/sys/unix/os.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs index a9cd5094997..2fcb5b9c4e6 100644 --- a/src/libstd/sys/unix/os.rs +++ b/src/libstd/sys/unix/os.rs @@ -71,6 +71,7 @@ pub fn errno() -> i32 { /// Sets the platform-specific value of errno #[cfg(all(not(target_os = "linux"), not(target_os = "dragonfly")))] // needed for readdir and syscall! +#[allow(dead_code)] // but not all target cfgs actually end up using it pub fn set_errno(e: i32) { unsafe { *errno_location() = e as c_int } } |
