Tell std that mikros uses UNIX-style paths

This commit is contained in:
pjht 2024-06-07 10:49:05 -05:00
parent 8d7aec25b7
commit 12f89ebb89
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -2212,7 +2212,7 @@ impl Path {
// FIXME: Allow Redox prefixes
self.has_root() || has_redox_scheme(self.as_u8_slice())
} else {
self.has_root() && (cfg!(any(unix, target_os = "wasi")) || self.prefix().is_some())
self.has_root() && (cfg!(any(unix, target_os = "wasi", target_os = "mikros")) || self.prefix().is_some())
}
}