Skip to content

Commit 1d24374

Browse files
committed
linkat() not available in the system headers of Solaris 10
1 parent dd12cd6 commit 1d24374

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/unix

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/fs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ pub fn link(original: &Path, link: &Path) -> io::Result<()> {
14231423
run_path_with_cstr(original, |original| {
14241424
run_path_with_cstr(link, |link| {
14251425
cfg_if::cfg_if! {
1426-
if #[cfg(any(target_os = "vxworks", target_os = "redox", target_os = "android", target_os = "espidf", target_os = "horizon"))] {
1426+
if #[cfg(any(target_os = "vxworks", target_os = "redox", target_os = "android", target_os = "espidf", target_os = "horizon", target_os = "solaris"))] {
14271427
// VxWorks, Redox and ESP-IDF lack `linkat`, so use `link` instead. POSIX leaves
14281428
// it implementation-defined whether `link` follows symlinks, so rely on the
14291429
// `symlink_hard_link` test in library/std/src/fs/tests.rs to check the behavior.

0 commit comments

Comments
 (0)