path.canonicalize()
}
-#[cfg(target_os = "espidf")]
+#[cfg(any(target_os = "espidf", target_os = "horizon"))]
pub fn current_exe() -> io::Result<PathBuf> {
super::unsupported::unsupported()
}
target_os = "emscripten",
target_os = "redox",
target_os = "vxworks",
- target_os = "espidf"
+ target_os = "espidf",
+ target_os = "horizon"
))]
unsafe fn fallback() -> Option<OsString> {
None
target_os = "emscripten",
target_os = "redox",
target_os = "vxworks",
- target_os = "espidf"
+ target_os = "espidf",
+ target_os = "horizon"
)))]
unsafe fn fallback() -> Option<OsString> {
let amt = match libc::sysconf(libc::_SC_GETPW_R_SIZE_MAX) {