diff options
| author | Nikita Baksalyar <nikita.baksalyar@gmail.com> | 2016-01-28 14:02:31 +0300 |
|---|---|---|
| committer | Nikita Baksalyar <nikita.baksalyar@gmail.com> | 2016-01-31 19:01:30 +0300 |
| commit | e5da5d59f817eb6a3b78134d49b80c3ed6cb42c9 (patch) | |
| tree | cf136c8ed9301ce831416c08e3b3d6e3381d31fa /src/libstd/sys/unix/fd.rs | |
| parent | 6d07b68f5e95debebe3983f8b2d9bfbc2afbe970 (diff) | |
| download | rust-e5da5d59f817eb6a3b78134d49b80c3ed6cb42c9.tar.gz rust-e5da5d59f817eb6a3b78134d49b80c3ed6cb42c9.zip | |
Rename sunos to solaris
Diffstat (limited to 'src/libstd/sys/unix/fd.rs')
| -rw-r--r-- | src/libstd/sys/unix/fd.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/unix/fd.rs b/src/libstd/sys/unix/fd.rs index 1aeed306aa5..94775341c38 100644 --- a/src/libstd/sys/unix/fd.rs +++ b/src/libstd/sys/unix/fd.rs @@ -50,14 +50,14 @@ impl FileDesc { Ok(ret as usize) } - #[cfg(not(any(target_env = "newlib", target_os = "sunos")))] + #[cfg(not(any(target_env = "newlib", target_os = "solaris")))] pub fn set_cloexec(&self) { unsafe { let ret = libc::ioctl(self.fd, libc::FIOCLEX); debug_assert_eq!(ret, 0); } } - #[cfg(any(target_env = "newlib", target_os = "sunos"))] + #[cfg(any(target_env = "newlib", target_os = "solaris"))] pub fn set_cloexec(&self) { unsafe { let previous = libc::fcntl(self.fd, libc::F_GETFD); |
