Skip to content

Commit

Permalink
Support AIX dyld constants
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnelises committed Aug 30, 2022
1 parent 6e07929 commit bd17713
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/os/unix/consts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ mod posix {
cfg_if! {
if #[cfg(target_os = "haiku")] {
pub(super) const RTLD_LAZY: c_int = 0;
} else if #[cfg(target_os = "aix")] {
pub(super) const RTLD_LAZY: c_int = 4;
} else if #[cfg(any(
target_os = "linux",
target_os = "android",
Expand Down Expand Up @@ -104,6 +106,7 @@ mod posix {
target_os = "openbsd",
target_os = "netbsd",

target_os = "aix",
target_os = "solaris",
target_os = "illumos",

Expand All @@ -129,6 +132,8 @@ mod posix {
all(target_os = "android",target_pointer_width = "32"),
))] {
pub(super) const RTLD_GLOBAL: c_int = 2;
} else if #[cfg(target_os = "aix")] {
pub(super) const RTLD_GLOBAL: c_int = 0x10000;
} else if #[cfg(any(
target_env = "uclibc",
all(target_os = "linux", target_arch = "mips"),
Expand Down Expand Up @@ -169,6 +174,8 @@ mod posix {
cfg_if! {
if #[cfg(target_os = "netbsd")] {
pub(super) const RTLD_LOCAL: c_int = 0x200;
} else if #[cfg(target_os = "aix")] {
pub(super) const RTLD_LOCAL: c_int = 0x80000;
} else if #[cfg(any(
target_os = "macos",
target_os = "ios",
Expand Down

0 comments on commit bd17713

Please sign in to comment.