Skip to content

Commit d48fa78

Browse files
committed
powerpc: add cdefs for linux
This borrowed entirely from the mips definitions, and should be revisited after it lands while testing.
1 parent 1649810 commit d48fa78

File tree

1 file changed

+9
-3
lines changed
  • src/libstd/sys/unix

1 file changed

+9
-3
lines changed

src/libstd/sys/unix/c.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ pub const FIONBIO: libc::c_ulong = 0x8004667e;
3333
target_os = "android"))]
3434
pub const FIONBIO: libc::c_ulong = 0x5421;
3535
#[cfg(all(target_os = "linux",
36-
any(target_arch = "mips", target_arch = "mipsel")))]
36+
any(target_arch = "mips",
37+
target_arch = "mipsel",
38+
target_arch = "powerpc")))]
3739
pub const FIONBIO: libc::c_ulong = 0x667e;
3840

3941
#[cfg(any(target_os = "macos",
@@ -49,7 +51,9 @@ pub const FIOCLEX: libc::c_ulong = 0x20006601;
4951
target_os = "android"))]
5052
pub const FIOCLEX: libc::c_ulong = 0x5451;
5153
#[cfg(all(target_os = "linux",
52-
any(target_arch = "mips", target_arch = "mipsel")))]
54+
any(target_arch = "mips",
55+
target_arch = "mipsel",
56+
target_arch = "powerpc")))]
5357
pub const FIOCLEX: libc::c_ulong = 0x6601;
5458

5559
#[cfg(any(target_os = "macos",
@@ -182,7 +186,9 @@ mod signal {
182186
}
183187

184188
#[cfg(all(target_os = "linux",
185-
any(target_arch = "mips", target_arch = "mipsel")))]
189+
any(target_arch = "mips",
190+
target_arch = "mipsel",
191+
target_arch = "powerpc")))]
186192
mod signal {
187193
use libc;
188194

0 commit comments

Comments
 (0)