Skip to content

Commit bd17713

Browse files
committed
Support AIX dyld constants
1 parent 6e07929 commit bd17713

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/os/unix/consts.rs

+7
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ mod posix {
6060
cfg_if! {
6161
if #[cfg(target_os = "haiku")] {
6262
pub(super) const RTLD_LAZY: c_int = 0;
63+
} else if #[cfg(target_os = "aix")] {
64+
pub(super) const RTLD_LAZY: c_int = 4;
6365
} else if #[cfg(any(
6466
target_os = "linux",
6567
target_os = "android",
@@ -104,6 +106,7 @@ mod posix {
104106
target_os = "openbsd",
105107
target_os = "netbsd",
106108

109+
target_os = "aix",
107110
target_os = "solaris",
108111
target_os = "illumos",
109112

@@ -129,6 +132,8 @@ mod posix {
129132
all(target_os = "android",target_pointer_width = "32"),
130133
))] {
131134
pub(super) const RTLD_GLOBAL: c_int = 2;
135+
} else if #[cfg(target_os = "aix")] {
136+
pub(super) const RTLD_GLOBAL: c_int = 0x10000;
132137
} else if #[cfg(any(
133138
target_env = "uclibc",
134139
all(target_os = "linux", target_arch = "mips"),
@@ -169,6 +174,8 @@ mod posix {
169174
cfg_if! {
170175
if #[cfg(target_os = "netbsd")] {
171176
pub(super) const RTLD_LOCAL: c_int = 0x200;
177+
} else if #[cfg(target_os = "aix")] {
178+
pub(super) const RTLD_LOCAL: c_int = 0x80000;
172179
} else if #[cfg(any(
173180
target_os = "macos",
174181
target_os = "ios",

0 commit comments

Comments
 (0)