diff --git a/Cargo.toml b/Cargo.toml index af064432..6f5e7302 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,7 +73,7 @@ libc = { version = "0.2.176", default-features = false } libc = { version = "0.2.190", default-features = false } # use_file -[target.'cfg(any(target_os = "haiku", target_os = "nto", target_os = "aix"))'.dependencies] +[target.'cfg(any(target_os = "haiku", target_os = "nto", target_os = "qnx", target_os = "aix"))'.dependencies] libc = { version = "0.2.176", default-features = false } # vxworks diff --git a/src/backends.rs b/src/backends.rs index d644ab62..d1a70bde 100644 --- a/src/backends.rs +++ b/src/backends.rs @@ -44,6 +44,7 @@ cfg_if! { } else if #[cfg(any( target_os = "haiku", target_os = "nto", + target_os = "qnx", target_os = "aix", ))] { mod use_file; diff --git a/src/utils/get_errno.rs b/src/utils/get_errno.rs index 2c68ef9e..5fbe185e 100644 --- a/src/utils/get_errno.rs +++ b/src/utils/get_errno.rs @@ -9,7 +9,7 @@ cfg_if! { use libc::__error as errno_location; } else if #[cfg(target_os = "haiku")] { use libc::_errnop as errno_location; - } else if #[cfg(target_os = "nto")] { + } else if #[cfg(any(target_os = "nto", target_os = "qnx"))] { use libc::__get_errno_ptr as errno_location; } else if #[cfg(any(all(target_os = "horizon", target_arch = "arm"), target_os = "vita"))] { unsafe extern "C" {