Skip to content

Commit 7776820

Browse files
committed
powerpc: definition support for libc
1 parent 8341ee4 commit 7776820

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

src/liblibc/lib.rs

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,8 @@ pub mod types {
497497
#[cfg(any(target_arch = "x86",
498498
target_arch = "arm",
499499
target_arch = "mips",
500-
target_arch = "mipsel"))]
500+
target_arch = "mipsel",
501+
target_arch = "powerpc"))]
501502
pub mod arch {
502503
pub mod c95 {
503504
pub type c_char = i8;
@@ -528,7 +529,8 @@ pub mod types {
528529
}
529530
#[cfg(any(target_arch = "x86",
530531
target_arch = "mips",
531-
target_arch = "mipsel"))]
532+
target_arch = "mipsel",
533+
target_arch = "powerpc"))]
532534
pub mod posix88 {
533535
pub type off_t = i32;
534536
pub type dev_t = u64;
@@ -642,7 +644,9 @@ pub mod types {
642644
pub __size: [u32; 9]
643645
}
644646
}
645-
#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]
647+
#[cfg(any(target_arch = "mips",
648+
target_arch = "mipsel",
649+
target_arch = "powerpc"))]
646650
pub mod posix01 {
647651
use types::os::arch::c95::{c_long, c_ulong, time_t};
648652
use types::os::arch::posix88::{gid_t, ino_t};
@@ -2697,7 +2701,9 @@ pub mod consts {
26972701
pub const EHWPOISON: c_int = 133;
26982702
}
26992703

2700-
#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]
2704+
#[cfg(any(target_arch = "mips",
2705+
target_arch = "mipsel",
2706+
target_arch = "powerpc"))]
27012707
pub mod posix88 {
27022708
use types::os::arch::c95::c_int;
27032709
use types::common::c95::c_void;
@@ -2982,7 +2988,8 @@ pub mod consts {
29822988
#[cfg(all(target_os = "linux",
29832989
any(target_arch = "mips",
29842990
target_arch = "mipsel",
2985-
target_arch = "aarch64")))]
2991+
target_arch = "aarch64",
2992+
target_arch = "powerpc")))]
29862993
pub const PTHREAD_STACK_MIN: size_t = 131072;
29872994

29882995
pub const CLOCK_REALTIME: c_int = 0;
@@ -3040,7 +3047,9 @@ pub mod consts {
30403047
pub const SHUT_WR: c_int = 1;
30413048
pub const SHUT_RDWR: c_int = 2;
30423049
}
3043-
#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]
3050+
#[cfg(any(target_arch = "mips",
3051+
target_arch = "mipsel",
3052+
target_arch = "powerpc"))]
30443053
pub mod bsd44 {
30453054
use types::os::arch::c95::c_int;
30463055

@@ -3115,7 +3124,9 @@ pub mod consts {
31153124
pub const MAP_NONBLOCK : c_int = 0x010000;
31163125
pub const MAP_STACK : c_int = 0x020000;
31173126
}
3118-
#[cfg(any(target_arch = "mips", target_arch = "mipsel"))]
3127+
#[cfg(any(target_arch = "mips",
3128+
target_arch = "mipsel",
3129+
target_arch = "powerpc"))]
31193130
pub mod extra {
31203131
use types::os::arch::c95::c_int;
31213132

0 commit comments

Comments
 (0)