File tree 3 files changed +4
-1
lines changed
3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ pub use crate::error::Error;
209
209
// The function MUST NOT ever write uninitialized bytes into `dest`,
210
210
// regardless of what value it returns.
211
211
cfg_if ! {
212
- if #[ cfg( any( target_os = "haiku" , target_os = "redox" ) ) ] {
212
+ if #[ cfg( any( target_os = "haiku" , target_os = "redox" , target_os = "aix" ) ) ] {
213
213
mod util_libc;
214
214
#[ path = "use_file.rs" ] mod imp;
215
215
} else if #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ] {
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ use core::{
25
25
#[ cfg( any( target_os = "solaris" , target_os = "illumos" ) ) ]
26
26
const FILE_PATH : & str = "/dev/random\0 " ;
27
27
#[ cfg( any(
28
+ target_os = "aix" ,
28
29
target_os = "android" ,
29
30
target_os = "linux" ,
30
31
target_os = "redox" ,
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ cfg_if! {
32
32
fn __errno( ) -> * mut libc:: c_int;
33
33
}
34
34
use __errno as errno_location;
35
+ } else if #[ cfg( target_os = "aix" ) ] {
36
+ use libc:: _Errno as errno_location;
35
37
}
36
38
}
37
39
You can’t perform that action at this time.
0 commit comments