From 95d03a1ddfbb9909555ed0b701f1018ffbcccebc Mon Sep 17 00:00:00 2001 From: Florian Bartels Date: Tue, 4 Apr 2023 10:11:34 +0200 Subject: [PATCH] Add support for QNX Neutrino --- src/os/unix/consts.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/os/unix/consts.rs b/src/os/unix/consts.rs index ea7a6a102..a135c0c43 100644 --- a/src/os/unix/consts.rs +++ b/src/os/unix/consts.rs @@ -82,6 +82,7 @@ mod posix { target_os = "fuchsia", target_os = "redox", + target_os = "nto", ))] { pub(super) const RTLD_LAZY: c_int = 1; } else { @@ -115,6 +116,7 @@ mod posix { target_os = "fuchsia", target_os = "redox", + target_os = "nto", ))] { pub(super) const RTLD_NOW: c_int = 2; } else if #[cfg(all(target_os = "android",target_pointer_width = "32"))] { @@ -162,6 +164,7 @@ mod posix { target_os = "fuchsia", target_os = "redox", + target_os = "nto", ))] { pub(super) const RTLD_GLOBAL: c_int = 0x100; } else { @@ -172,7 +175,10 @@ mod posix { } cfg_if! { - if #[cfg(target_os = "netbsd")] { + if #[cfg(any( + target_os = "netbsd", + target_os = "nto", + ))] { pub(super) const RTLD_LOCAL: c_int = 0x200; } else if #[cfg(target_os = "aix")] { pub(super) const RTLD_LOCAL: c_int = 0x80000;