File tree 3 files changed +26
-1
lines changed
src/unix/notbsd/linux/other 3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ cfg_if! {
86
86
} else if #[ cfg( target_arch = "arm" ) ] {
87
87
mod arm;
88
88
pub use self :: arm:: * ;
89
+ } else if #[ cfg( target_arch = "powerpc" ) ] {
90
+ mod powerpc;
91
+ pub use self :: powerpc:: * ;
89
92
} else {
90
93
// ...
91
94
}
Original file line number Diff line number Diff line change
1
+ pub type c_char = u8 ;
2
+ pub type wchar_t = i32 ;
3
+
4
+ pub const O_DIRECT : :: c_int = 0x20000 ;
5
+ pub const O_DIRECTORY : :: c_int = 0x4000 ;
6
+ pub const O_NOFOLLOW : :: c_int = 0x8000 ;
7
+
8
+ pub const MAP_LOCKED : :: c_int = 0x00080 ;
9
+ pub const MAP_NORESERVE : :: c_int = 0x00040 ;
10
+
11
+ pub const EDEADLOCK : :: c_int = 58 ;
12
+
13
+ pub const SO_PEERCRED : :: c_int = 21 ;
14
+ pub const SO_RCVLOWAT : :: c_int = 16 ;
15
+ pub const SO_SNDLOWAT : :: c_int = 17 ;
16
+ pub const SO_RCVTIMEO : :: c_int = 18 ;
17
+ pub const SO_SNDTIMEO : :: c_int = 19 ;
18
+
19
+ pub const FIOCLEX : :: c_ulong = 0x20006601 ;
20
+ pub const FIONBIO : :: c_ulong = 0x8004667e ;
Original file line number Diff line number Diff line change @@ -429,7 +429,9 @@ extern {
429
429
}
430
430
431
431
cfg_if ! {
432
- if #[ cfg( any( target_arch = "x86" , target_arch = "arm" ) ) ] {
432
+ if #[ cfg( any( target_arch = "x86" ,
433
+ target_arch = "arm" ,
434
+ target_arch = "powerpc" ) ) ] {
433
435
mod b32;
434
436
pub use self :: b32:: * ;
435
437
} else if #[ cfg( any( target_arch = "x86_64" ,
You can’t perform that action at this time.
0 commit comments