diff options
| author | Daniel Laügt <daniel.laugt@gmail.com> | 2022-11-28 10:07:36 +0100 |
|---|---|---|
| committer | Daniel Laügt <daniel.laugt@gmail.com> | 2022-11-28 10:07:36 +0100 |
| commit | 1d24374521496aad0d60c490f8e793e6b8ed80e3 (patch) | |
| tree | 194903b2e573cb1404b110b831a5a3f08bd740f6 /library/std/src/sys | |
| parent | dd12cd6dc631b5e964d541d370ca863c2242376c (diff) | |
| download | rust-1d24374521496aad0d60c490f8e793e6b8ed80e3.tar.gz rust-1d24374521496aad0d60c490f8e793e6b8ed80e3.zip | |
linkat() not available in the system headers of Solaris 10
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/unix/fs.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/fs.rs b/library/std/src/sys/unix/fs.rs index 37a49f2d78a..c9deb1fc6bd 100644 --- a/library/std/src/sys/unix/fs.rs +++ b/library/std/src/sys/unix/fs.rs @@ -1423,7 +1423,7 @@ pub fn link(original: &Path, link: &Path) -> io::Result<()> { run_path_with_cstr(original, |original| { run_path_with_cstr(link, |link| { cfg_if::cfg_if! { - if #[cfg(any(target_os = "vxworks", target_os = "redox", target_os = "android", target_os = "espidf", target_os = "horizon"))] { + if #[cfg(any(target_os = "vxworks", target_os = "redox", target_os = "android", target_os = "espidf", target_os = "horizon", target_os = "solaris"))] { // VxWorks, Redox and ESP-IDF lack `linkat`, so use `link` instead. POSIX leaves // it implementation-defined whether `link` follows symlinks, so rely on the // `symlink_hard_link` test in library/std/src/fs/tests.rs to check the behavior. |
