Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit e588290

Browse files
Merge branch 'wii' into master
2 parents ecdbc20 + a2870ad commit e588290

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/unix/newlib/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,9 @@ cfg_if! {
699699
} else if #[cfg(target_arch = "aarch64")] {
700700
mod aarch64;
701701
pub use self::aarch64::*;
702+
} else if #[cfg(target_arch = "powerpc")] {
703+
mod powerpc;
704+
pub use self::powerpc::*;
702705
} else {
703706
// Only tested on ARM so far. Other platforms might have different
704707
// definitions for types and constants.

src/unix/newlib/powerpc/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pub type c_char = u8;
2+
pub type wchar_t = i32;
3+
4+
pub type c_long = i32;
5+
pub type c_ulong = u32;

src/unix/redox/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -729,6 +729,7 @@ extern {
729729
pub fn __errno_location() -> *mut ::c_int;
730730
pub fn strerror_r(errnum: ::c_int, buf: *mut c_char,
731731
buflen: ::size_t) -> ::c_int;
732+
pub fn __errno_location() -> *mut ::c_int;
732733

733734
// unistd.h
734735
pub fn pipe2(fds: *mut ::c_int, flags: ::c_int) -> ::c_int;

0 commit comments

Comments
 (0)