Skip to content

Commit bb80310

Browse files
committed
Rollup merge of rust-lang#21500 - richo:power-fixups, r=alexcrichton
When I wrote this code, my janky shim to verify the constants didn't work as intended. This fixes everything I've run into since merge, which is hopefully everything.
2 parents dc27d29 + 48aa068 commit bb80310

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/liblibc/lib.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ pub mod types {
555555
pub type mode_t = u16;
556556
pub type ssize_t = i32;
557557
}
558-
#[cfg(target_arch = "x86")]
558+
#[cfg(any(target_arch = "x86",
559+
target_arch = "powerpc"))]
559560
pub mod posix01 {
560561
use types::os::arch::c95::{c_short, c_long, time_t};
561562
use types::os::arch::posix88::{dev_t, gid_t, ino_t};
@@ -646,8 +647,7 @@ pub mod types {
646647
}
647648
}
648649
#[cfg(any(target_arch = "mips",
649-
target_arch = "mipsel",
650-
target_arch = "powerpc"))]
650+
target_arch = "mipsel"))]
651651
pub mod posix01 {
652652
use types::os::arch::c95::{c_long, c_ulong, time_t};
653653
use types::os::arch::posix88::{gid_t, ino_t};
@@ -2491,7 +2491,8 @@ pub mod consts {
24912491
#[cfg(any(target_arch = "x86",
24922492
target_arch = "x86_64",
24932493
target_arch = "arm",
2494-
target_arch = "aarch64"))]
2494+
target_arch = "aarch64",
2495+
target_arch = "powerpc"))]
24952496
pub mod posix88 {
24962497
use types::os::arch::c95::c_int;
24972498
use types::common::c95::c_void;
@@ -2704,8 +2705,7 @@ pub mod consts {
27042705
}
27052706

27062707
#[cfg(any(target_arch = "mips",
2707-
target_arch = "mipsel",
2708-
target_arch = "powerpc"))]
2708+
target_arch = "mipsel"))]
27092709
pub mod posix88 {
27102710
use types::os::arch::c95::c_int;
27112711
use types::common::c95::c_void;
@@ -3002,7 +3002,8 @@ pub mod consts {
30023002
#[cfg(any(target_arch = "arm",
30033003
target_arch = "aarch64",
30043004
target_arch = "x86",
3005-
target_arch = "x86_64"))]
3005+
target_arch = "x86_64",
3006+
target_arch = "powerpc"))]
30063007
pub mod bsd44 {
30073008
use types::os::arch::c95::c_int;
30083009

@@ -3050,8 +3051,7 @@ pub mod consts {
30503051
pub const SHUT_RDWR: c_int = 2;
30513052
}
30523053
#[cfg(any(target_arch = "mips",
3053-
target_arch = "mipsel",
3054-
target_arch = "powerpc"))]
3054+
target_arch = "mipsel"))]
30553055
pub mod bsd44 {
30563056
use types::os::arch::c95::c_int;
30573057

@@ -3099,7 +3099,8 @@ pub mod consts {
30993099
#[cfg(any(target_arch = "x86",
31003100
target_arch = "x86_64",
31013101
target_arch = "arm",
3102-
target_arch = "aarch64"))]
3102+
target_arch = "aarch64",
3103+
target_arch = "powerpc"))]
31033104
pub mod extra {
31043105
use types::os::arch::c95::c_int;
31053106

@@ -3127,8 +3128,7 @@ pub mod consts {
31273128
pub const MAP_STACK : c_int = 0x020000;
31283129
}
31293130
#[cfg(any(target_arch = "mips",
3130-
target_arch = "mipsel",
3131-
target_arch = "powerpc"))]
3131+
target_arch = "mipsel"))]
31323132
pub mod extra {
31333133
use types::os::arch::c95::c_int;
31343134

0 commit comments

Comments
 (0)