diff --git a/Cargo.toml b/Cargo.toml index 0e488c4d..638f780d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -69,7 +69,7 @@ libc = { version = "0.2.154", default-features = false } libc = { version = "0.2.154", default-features = false } # use_file -[target.'cfg(any(target_os = "haiku", target_os = "redox", target_os = "nto", target_os = "aix"))'.dependencies] +[target.'cfg(any(target_os = "haiku", target_os = "redox", target_os = "nto", target_os = "aix", target_os = "zos"))'.dependencies] libc = { version = "0.2.154", default-features = false } # vxworks diff --git a/src/backends.rs b/src/backends.rs index 86ffd757..33aead4a 100644 --- a/src/backends.rs +++ b/src/backends.rs @@ -46,6 +46,7 @@ cfg_if! { target_os = "redox", target_os = "nto", target_os = "aix", + target_os = "zos", ))] { mod use_file; pub use use_file::*; diff --git a/src/utils/get_errno.rs b/src/utils/get_errno.rs index 1895fc05..ceff150c 100644 --- a/src/utils/get_errno.rs +++ b/src/utils/get_errno.rs @@ -1,5 +1,5 @@ cfg_if! { - if #[cfg(any(target_os = "netbsd", target_os = "openbsd", target_os = "android", target_os = "cygwin"))] { + if #[cfg(any(target_os = "netbsd", target_os = "openbsd", target_os = "android", target_os = "cygwin", target_os = "zos"))] { use libc::__errno as errno_location; } else if #[cfg(any(target_os = "linux", target_os = "emscripten", target_os = "hurd", target_os = "redox", target_os = "dragonfly"))] { use libc::__errno_location as errno_location;