Commit bd17713 1 parent 6e07929 commit bd17713 Copy full SHA for bd17713
File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ mod posix {
60
60
cfg_if ! {
61
61
if #[ cfg( target_os = "haiku" ) ] {
62
62
pub ( super ) const RTLD_LAZY : c_int = 0 ;
63
+ } else if #[ cfg( target_os = "aix" ) ] {
64
+ pub ( super ) const RTLD_LAZY : c_int = 4 ;
63
65
} else if #[ cfg( any(
64
66
target_os = "linux" ,
65
67
target_os = "android" ,
@@ -104,6 +106,7 @@ mod posix {
104
106
target_os = "openbsd" ,
105
107
target_os = "netbsd" ,
106
108
109
+ target_os = "aix" ,
107
110
target_os = "solaris" ,
108
111
target_os = "illumos" ,
109
112
@@ -129,6 +132,8 @@ mod posix {
129
132
all( target_os = "android" , target_pointer_width = "32" ) ,
130
133
) ) ] {
131
134
pub ( super ) const RTLD_GLOBAL : c_int = 2 ;
135
+ } else if #[ cfg( target_os = "aix" ) ] {
136
+ pub ( super ) const RTLD_GLOBAL : c_int = 0x10000 ;
132
137
} else if #[ cfg( any(
133
138
target_env = "uclibc" ,
134
139
all( target_os = "linux" , target_arch = "mips" ) ,
@@ -169,6 +174,8 @@ mod posix {
169
174
cfg_if ! {
170
175
if #[ cfg( target_os = "netbsd" ) ] {
171
176
pub ( super ) const RTLD_LOCAL : c_int = 0x200 ;
177
+ } else if #[ cfg( target_os = "aix" ) ] {
178
+ pub ( super ) const RTLD_LOCAL : c_int = 0x80000 ;
172
179
} else if #[ cfg( any(
173
180
target_os = "macos" ,
174
181
target_os = "ios" ,
You can’t perform that action at this time.
0 commit comments