Skip to content

Commit

Permalink
Add support for QNX Neutrino
Browse files Browse the repository at this point in the history
  • Loading branch information
flba-eb committed Apr 4, 2023
1 parent 6e28498 commit 95d03a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/os/unix/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ mod posix {

target_os = "fuchsia",
target_os = "redox",
target_os = "nto",
))] {
pub(super) const RTLD_LAZY: c_int = 1;
} else {
Expand Down Expand Up @@ -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"))] {
Expand Down Expand Up @@ -162,6 +164,7 @@ mod posix {

target_os = "fuchsia",
target_os = "redox",
target_os = "nto",
))] {
pub(super) const RTLD_GLOBAL: c_int = 0x100;
} else {
Expand All @@ -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;
Expand Down

0 comments on commit 95d03a1

Please sign in to comment.